GNU bug report logs - #50399
TRAMP can't connect to Win 2000 (smb, ftp, telnet)

Previous Next

Package: emacs;

Reported by: Bad Blue Bull <ibmbull <at> yandex.ru>

Date: Sun, 5 Sep 2021 09:44:02 UTC

Severity: normal

Tags: moreinfo

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50399 in the body.
You can then email your comments to 50399 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sun, 05 Sep 2021 09:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bad Blue Bull <ibmbull <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 05 Sep 2021 09:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sun, 05 Sep 2021 12:43:40 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sun, 05 Sep 2021 17:48:02 GMT) Full text and rfc822 format available.

Message #8 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: 50399 <at> debbugs.gnu.org
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sun, 05 Sep 2021 19:46:57 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> I have troubles connecting to Win2K remotehost with TRAMP:

Which Emacs/Tramp versions are you using?

> Samba:
> I can connect from console with smbclient:
>  
>    smbclient -L win2k -U nicolas
>    smbclient //WIN2K/c$ -U Nicolas
>  
> but I can't with tramp (using "c-x c-f /ssh:nicolas <at> win2k:"):
>    protocol negotiation failed: NT_STATUS_IO_TIMEOUT

This isn't samba but ssh. You must use "/smb:nicolas <at> win2k:/SHARE", with
SHARE being a share name on your machine, for example "c$".

> FTP:
> I can connect with ftp, but when I try "c-x c-f
> /ftp:Anonymous <at> 192.168.0.141:" I get this:
>    File is missing: Opening directory No such file or directory
> /ftp:Anonymous <at> 192.168.0.141:/ [4 times]
>    tramp-signal-hook-function: Opening directory No such file or
> directory /ftp:Anonymous <at> 192.168.0.141:/
> meanwhile there's opened FTP session in *ftp Anonymous <at> 192.168.0.141*
> buffer, and I can use ftp commands there.
> I can connect that way successfully to NetBSD remote host with bftpd
> running on it.

I would like to see the complete ange-ftp buffer.

> Telnet:
> I can connect using telnet from console or using PuTTY, but TRAMP just
> hangs with
>
>     Tramp: Opening connection for nicolas <at> 192.168.0.141 using
>     telnet...
>     Tramp: Sending command ‘exec telnet 192.168.0.141  2>/dev/null’
>     Tramp: Waiting for prompts from remote shell...
>     Tramp: Sending login name ‘nicolas’
>     File error: Timeout reached, see buffer ‘*tramp/telnet
>     nicolas <at> 192.168.0.141*’ for details
>     Tramp: Waiting for prompts from remote shell...failed
>     Tramp: Opening connection for nicolas <at> 192.168.0.141 using
>     telnet...failed
>     Cleaning up the recentf list...done (0 removed)
>     Tramp: Opening connection for nicolas <at> 192.168.0.141 using
>     telnet...
>     Tramp: Sending command ‘exec telnet 192.168.0.141  2>/dev/null’
>     Tramp: Waiting for prompts from remote shell...
>     Tramp: Sending login name ‘nicolas’
>     File error: Timeout reached, see buffer ‘*tramp/telnet
>     nicolas <at> 192.168.0.141*’ for details
>     Tramp: Waiting for prompts from remote shell...failed
>     Tramp: Opening connection for nicolas <at> 192.168.0.141 using
>     telnet...failed
>     Cleaning up the recentf list...done (0 removed)
>     tramp-signal-hook-function: Timeout reached, see buffer
>     ‘*tramp/telnet nicolas <at> 192.168.0.141*’ for details
>
> the buffer has Process "*tramp/smb nicolas <at> win2k* exited abnormally
> with code 1"

This cannot be the telnet buffer, it must be something like
"*tramp/telnet ...".

Best regards, Michael.




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 06 Sep 2021 11:50:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Mon, 06 Sep 2021 19:17:01 GMT) Full text and rfc822 format available.

Message #13 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: 50399 <at> debbugs.gnu.org
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Mon, 06 Sep 2021 21:16:11 +0200
[Please keep the Cc for the archives]

Bad Blue Bull <ibmbull <at> yandex.ru> writes:

>     "protocol negotiation failed" ... hmmm.
>
>     Your win2k machine is likely to run the SMB1 protocol. Recent
>     smbclient
>     programs have disabled this by default, for security reasons.
>
> yes, thanks, it works now.  I made smbclient use smb1 by editing
> smb.conf before, I didn't know I also must customize Tramp (as it uses
> smbclient).

Tramp doesn't use your local smb.conf. There have been too much problems
in the past. See the constant `tramp-smb-conf'.

>     Here we need more traces. Please start
>
>     # emacs -Q --eval '(setq tramp-verbose 10)'
>     /telnet:nicolas <at> 192.168.0.141:
>
>     When Tramp hangs, and it runs into a timeout (or you hit C-g),
>     there is
>     a debug buffer *debug tramp/telnet nicolas <at> 192.168.0.141*
>
>     Please send it as attachment.
>
> here it is:
>
>       backtrace()
>       tramp-signal-hook-function(quit (""))

No, it isn't. This is a backtrace. I need to see the buffer (!)
*debug tramp/telnet nicolas <at> 192.168.0.141*

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Mon, 06 Sep 2021 22:26:02 GMT) Full text and rfc822 format available.

Message #16 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Tue, 07 Sep 2021 01:25:23 +0300
[Message part 1 (text/html, inline)]
[telnet.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Tue, 07 Sep 2021 11:49:02 GMT) Full text and rfc822 format available.

Message #19 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Tue, 07 Sep 2021 13:48:30 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> *debug tramp/telnet nicolas <at> 192.168.0.141* attached

Thanks.

> ;; Emacs: 28.0.50 Tramp: 2.5.0-pre -*- mode: outline; -*-
> ;; Location: /usr/local/share/emacs/28.0.50/lisp/net/tramp.elc Git: /
> 01:20:29.358056 tramp-send-command (6) # exec telnet 192.168.0.141  2>/dev/null
> 01:20:32.454828 tramp-process-actions (6) #
> Trying 192.168.0.141...

Unfortunately, Tramp calls telnet with redirection of stderr, so we
don't see what's the problem. What happens, if you call in a local shell

# telnet 192.168.0.141

Pls show all messages.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Tue, 07 Sep 2021 20:45:02 GMT) Full text and rfc822 format available.

Message #22 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Tue, 07 Sep 2021 23:44:03 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 08 Sep 2021 07:14:01 GMT) Full text and rfc822 format available.

Message #25 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 08 Sep 2021 09:13:11 +0200
[Message part 1 (text/plain, inline)]
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> Trying 192.168.0.141...
> Connected to 192.168.0.141.
> Escape character is '^]'.
> Microsoft (R) Windows (TM) Version 5.00 (Build 2195)
> Welcome to Microsoft Telnet Service
> Telnet Server Build 5.00.99206.1
> login:

Looks correct to me. And none of this except the first line is in the
traces. So we need to run telnet from Tramp w/o stderr
redirection. Could you pls apply the appended patch to tramp-sh.el?

Since this requires a regeneration of tramp-loaddefs.el, pls recompile
Emacs via "make -C lisp autoloads compile". Rerun your test with
tramp-verbose set to 10, and show the traces.

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 08 Sep 2021 10:14:02 GMT) Full text and rfc822 format available.

Message #28 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 08 Sep 2021 13:13:09 +0300
[Message part 1 (text/html, inline)]
[narod_attachment_links.html (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 08 Sep 2021 14:36:02 GMT) Full text and rfc822 format available.

Message #31 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 08 Sep 2021 16:35:28 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> telnet2.txt (56099012)

This is a link to yandex web. My Russian is very limited, how can I
download the whole raw file?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 10 Sep 2021 08:34:02 GMT) Full text and rfc822 format available.

Message #34 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 10 Sep 2021 11:32:50 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 11 Sep 2021 13:52:01 GMT) Full text and rfc822 format available.

Message #37 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sat, 11 Sep 2021 15:50:47 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> sorry for late response.  can you try this link please:
> https://drive.google.com/file/d/1xY5xMS-QzMcWYwG1ATXEUzhlk4M1F0hC/view?usp=sharing

Thanks. This tells us more:

13:08:08.822916 tramp-send-command (6) # exec telnet 192.168.0.141  2>/dev/null
13:08:08.828755 tramp-action-login (6) #
Trying 192.168.0.141...
Connected to 192.168.0.141.
Escape character is '^]'.
Microsoft (R) Windows (TM) Version 5.00 (Build 2195)
Welcome to Microsoft Telnet Service
Telnet Server Build 5.00.99206.1
login:
13:08:08.828990 tramp-action-login (3) # Sending login name €nicolas€

Well, this calls telnet, and sends also your login name. After one
minute, this times out, as specified in Tramp.

13:09:08.908391 tramp-process-actions (10) #
  backtrace()
  tramp-error((tramp-file-name "telnet" "nicolas" nil "192.168.0.141" nil "" nil) file-error "Timeout reached, see buffer €*tramp/telnet nicolas...")

Hmm. Not clear why this happens here. I've just tested locally, and
telnet still works (yes, I had also to remove the "%n" argument from the
"telnet" entry in tramp-methods).

Perhaps a problem with CR/LF handling on your MS Windows telnet server?
What happens, if you set tramp-rsh-end-of-line to "\r\n" ?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 11 Sep 2021 22:53:01 GMT) Full text and rfc822 format available.

Message #40 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sun, 12 Sep 2021 01:52:40 +0300
[Message part 1 (text/html, inline)]
[image1 (image/gif, inline)]
[2021-09-12-011905_804x484_scrot.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 11 Sep 2021 23:35:02 GMT) Full text and rfc822 format available.

Message #43 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sun, 12 Sep 2021 02:34:26 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sun, 12 Sep 2021 15:38:02 GMT) Full text and rfc822 format available.

Message #46 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sun, 12 Sep 2021 17:37:35 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> Yes, CR/LF certainly matters.  Now I need only fix
> tramp-shell-prompt-pattern
> *
> (string-match-p tramp-shell-prompt-pattern "smb: \\>")
> returns 0, and smb works
> (string-match-p tramp-shell-prompt-pattern "C:\\> ")
> also returns 0 but tramp doesn't recognize telnet prompt.... (see
> telnet screenshot)

No, I don't believe it is a shell prompt problem. Seeing "C:\>" means,
that your telnet server has started "cmd.exe". This is NOT a POSIX
shell, and therefore Tramp won't cooperate with this.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sun, 12 Sep 2021 15:45:02 GMT) Full text and rfc822 format available.

Message #49 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sun, 12 Sep 2021 17:44:04 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

>     Tramp: Sending command ‘exec telnet 192.168.0.141  2>/dev/null’
>     Tramp: Waiting for prompts from remote shell...
>     Tramp: Sending login name ‘nicolas’ [2 times]
>     Tramp: Sending password
>     File error: Timeout reached, see buffer ‘*tramp/telnet
>     nicolas <at> 192.168.0.141*’ for details
>     Tramp: Waiting for prompts from remote shell...failed
>     Tramp: Opening connection for nicolas <at> 192.168.0.141 using
>     telnet...failed
>     Cleaning up the recentf list...done (0 removed)
>     tramp-signal-hook-function: Timeout reached, see buffer
>     ‘*tramp/telnet nicolas <at> 192.168.0.141*’ for details
>
> '*tramp/telnet nicolas <at> 192.168.0.141*' doesn't exist.  Surely it's up
> to shell prompts.

As said, it isn't necessarily a shell prompt problem. If we want to know
it for sure, Tramp traces would be needed.

But this isn't important, Tramp doesn't cooperate with cmd.exe.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Mon, 13 Sep 2021 07:39:02 GMT) Full text and rfc822 format available.

Message #52 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Mon, 13 Sep 2021 09:38:24 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> OK, thanks

Do you believe, we shall investigate the ange-ftp case? Honestly, the
combination of FTP and the server hosted on MS Windows doesn't sound
very familiar to me.

If not, I believe we could close the bug.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Mon, 13 Sep 2021 15:59:01 GMT) Full text and rfc822 format available.

Message #55 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Mon, 13 Sep 2021 18:58:33 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Tue, 14 Sep 2021 07:14:02 GMT) Full text and rfc822 format available.

Message #58 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Tue, 14 Sep 2021 09:13:26 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

>          OK, thanks
>
>     Do you believe, we shall investigate the ange-ftp case? Honestly,
>     the
>     combination of FTP and the server hosted on MS Windows doesn't
>     sound
>     very familiar to me.
>
> Yes, maybe change of tramp-ftp-method can help?

What else do you want to use here? It's value is "ftp", and Tramp
doesn't implement it itself, but forwards everything to ange-ftp.

There is a trick (undocumented, I believe) to use gio's ftp
implementation in Tramp. But let's keep this for later if needed.

> again, I can connect from console with ftp.
> C:\pub is the path for FTP node directory.
> I changed directory list style to "unix" in Internet Information
> Services settings, but it didn't help.

The *Messages* buffer doesn't tell us what's going on. Previously, you
have shown the ange-ftp buffer:

--8<---------------cut here---------------start------------->8---
    ftp> open 192.168.0.141
    Connected to 192.168.0.141 (192.168.0.141).
    220 WIN2K Microsoft FTP Service (Version 5.0).
    ftp> user "anonymous" Turtle Power!
    331 Anonymous access allowed, send identity (e-mail name) as
    password.
    230 Anonymous user logged in.
    ftp> hash
    Hash mark printing on (1024 bytes/hash mark).
    ftp> pwd
    257 "/" is current directory.
    ftp> cd /
    250 CWD command successful.
    ftp> ls -al /tmp/ange-ftpjlDCRq
    227 Entering Passive Mode (192,168,0,141,4,10).
    125 Data connection already open; Transfer starting.
    226 Transfer complete.
    ftp>
--8<---------------cut here---------------end--------------->8---

Could you mimick this in a shell? That is

--8<---------------cut here---------------start------------->8---
# ftp
ftp> open 192.168.0.141
Name (xxx): anonymous
ftp> hash
ftp> pwd
ftp> cd /
ftp> ls -al /tmp/foo
--8<---------------cut here---------------end--------------->8---

Please show the dialogue, and show the contents of /tmp/foo (as
attachment, in order to keep non-ASCII characters).

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Tue, 14 Sep 2021 12:56:01 GMT) Full text and rfc822 format available.

Message #61 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Tue, 14 Sep 2021 15:55:28 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Tue, 14 Sep 2021 18:00:02 GMT) Full text and rfc822 format available.

Message #64 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Tue, 14 Sep 2021 19:59:20 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> --8<---------------cut here---------------start------------->8---
> ftp> open 192.168.0.141
> Connected to 192.168.0.141 (192.168.0.141).
> 220 WIN2K Microsoft FTP Service (Version 5.0).
> Name (192.168.0.141:nr): anonymous
> 331 Anonymous access allowed, send identity (e-mail name) as password.
> Password:
> 230 Anonymous user logged in.
> Remote system type is Windows_NT.
> ftp> hash
> Hash mark printing on (1024 bytes/hash mark).
> ftp> pwd
> 257 "/" is current directory.
> ftp> cd /
> 250 CWD command successful.
> ftp> la -al /tmp/foo
> ?Invalid command
> ftp> ls -al /tmp/foo
> output to local-file: /tmp/foo? yes
> 227 Entering Passive Mode (192,168,0,141,4,9).
> 125 Data connection already open; Transfer starting.
> 226 Transfer complete.
> ftp> close
> 221
> --8<---------------cut here---------------end--------------->8---
>
> /tmp/foo is empty, just like ls output is void after I connect, I have
> to do 'cd pub' to reach that directory (C:\pub) designated for ftp
> communications.

So your FTP server denies to tell anything about "/". What happens, if
you try "C-x C-f /ftp:anonymous <at> 192.168.0.141:/pub" ?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Tue, 14 Sep 2021 18:19:02 GMT) Full text and rfc822 format available.

Message #67 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Tue, 14 Sep 2021 21:18:44 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Tue, 14 Sep 2021 18:25:02 GMT) Full text and rfc822 format available.

Message #70 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Tue, 14 Sep 2021 20:24:51 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> Ofc I would like to try but immediately after I input the colon after
> the remote machine's IP then Tramp makes unsuccessful attempt to
> connect, I guess after this I get
> File is missing: Opening directory No such file or directory
> /ftp:anonymous <at> 192.168.0.141:/ [2 times]
> tramp-signal-hook-function: Opening directory No such file or
> directory /ftp:anonymous <at> 192.168.0.141:/
>
> So I have no chance to enter "/pub".

Sounds like one of the many completion packages is in the way. What
happens, if you call

# emacs /ftp:anonymous <at> 192.168.0.141:/pub

Btw, I believe the better solution is that you could teach your MS Windows
FTP server, that the root directory is C:\pub .

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Tue, 14 Sep 2021 22:46:02 GMT) Full text and rfc822 format available.

Message #73 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 01:45:03 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 06:56:02 GMT) Full text and rfc822 format available.

Message #76 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 08:55:04 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> My bad, I didn't know root for FTP is C:\Inetpub\ftproot (was empty
> ofc).

So I guess the FTP access is working now? Good.

> Also I have problems with dired & smb:
>  
> dired-get-file-for-visit: File no longer exists; type ‘g’ to update
> Dired buffer [2 times]
>  
> I get these "File no longer exists" msgs when browse the shares.

There's a bell ringing in my head with this error message, but I don't
remember when it was fixed. Could you pls pull the recent Emacs git, and
recompile? Your are using

;; Emacs: 28.0.50 Tramp: 2.5.0-pre

which is quite old. Tramp version is 2.5.2-pre these days. If this
doesn't help, pls apply the usual reporting steps:

- Call "emacs -Q --eval '(setq tramp-verbose 6)'"

- Run your test

- Report the steps you have applied, the result, and what you would
  expect instead.

- Add the Tramp debug buffer.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 13:44:02 GMT) Full text and rfc822 format available.

Message #79 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 16:42:58 +0300
[Message part 1 (text/html, inline)]
[smb.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 13:45:01 GMT) Full text and rfc822 format available.

Message #82 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 16:44:09 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 14:43:02 GMT) Full text and rfc822 format available.

Message #85 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 16:42:35 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> Dired is pretty same, (I didn't do emacs -Q becauseI have no ido dired
> when start with -Q argument).

Well, your MS Windows server doesn't tell the expected. Tramp tries to
examine, whether it understands the smbclient command "stat":

--8<---------------cut here---------------start------------->8---
16:32:17.351861 tramp-smb-send-command (6) # stat "/"
16:32:17.352040 tramp-smb-wait-for-output (6) #
smb: \>
--8<---------------cut here---------------end--------------->8---

It doesn't show an error message, and so Tramp believes it understands
it. And fails to use it.

With more recent MS Windows or Samba server versions in my lab, we see

--8<---------------cut here---------------start------------->8---
16:25:32.254587 tramp-smb-send-command (6) # stat "/"
16:25:32.256747 tramp-smb-wait-for-output (6) #
Server doesn't support UNIX CIFS calls.
smb: \>
--8<---------------cut here---------------end--------------->8---

This is recognized by Tramp.

Hmm. Maybe you can teach Tramp that your MS Windows machine does not
understand "stat". Add the following to your .emacs:

--8<---------------cut here---------------start------------->8---
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/smb:nicolas <at> win2k:")
                   "stat-capability" nil))
--8<---------------cut here---------------end--------------->8---

Then restart your Emacs.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 16:10:02 GMT) Full text and rfc822 format available.

Message #88 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 19:09:48 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 16:19:02 GMT) Full text and rfc822 format available.

Message #91 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 18:18:26 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> OK, no idea, looks working better but still can have that "file no
> longer exists".

If you want me to analyze it I need new traces.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 16:29:02 GMT) Full text and rfc822 format available.

Message #94 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 19:28:41 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 16:35:02 GMT) Full text and rfc822 format available.

Message #97 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 18:34:44 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

> *tramp/smb nicolas <at> win2k*:

This is NOT the *debug tramp/smb ...* buffer.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 16:54:01 GMT) Full text and rfc822 format available.

Message #100 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 19:53:40 +0300
[Message part 1 (text/html, inline)]
[smb2.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 17:36:02 GMT) Full text and rfc822 format available.

Message #103 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 19:35:39 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> SORRY, forgot tramp-verbose
> https://drive.google.com/file/d/1SL1TfOdGPTYhaOxbWRQx1wfv0vw82YOX/view?usp=sharing

Thanks. Hmm, this looks strange. Sometimes, the smbclient commands work
as expected, sometimes, the responses of a command appear only after the
next command has been sent - this confuses Tramp.

What I have seen is that you change often the shares. This requires a
new connection, always. It is not the default use case.

Maybe this is due to the permanent reconnection. Could you, just for
test, work only at one share after you have connected to the Windows
server?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 18:32:01 GMT) Full text and rfc822 format available.

Message #106 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 21:30:52 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 18:57:01 GMT) Full text and rfc822 format available.

Message #109 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 20:56:28 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> First, why does Tramp always ask me the password (which is empty)
> despite I always save it to ~/.authinfo?
> I have there many lines of this:
> machine win2k login nicolas port smb

Don't know, but could we face one problem after the other?

>> Could you, just for test, work only at one share after you have
> connected to the
>> Windows server
> Sorry, as I just discovered problem is not only with dired but with
> usual c-x c-f (wih ido completion)

I haven't spoken about dired, Tramp doesn't know even that it is called
from a dired buffer. Tramp is just a simple library, which replaces the
implementation of basic Lisp file functions (like `file-exists-p' or
`copy-file') with something else. Whether these functions are called
from dired or ido or whatever package doesn't matter for Tramp.

> here I tried to walk into C:\Mags: (completion list for Mags was
> empty)
> ----------
>  
> 21:28:42.250425 tramp-process-one-action (5) # Looking for regexp "\
> (\)\'" from remote shell
> 21:28:42.250498 tramp-process-one-action (5) # Call
> ‘tramp-action-process-alive’
> 21:28:42.250604 tramp-process-one-action (5) # Looking for regexp "\
> (^\(smb:\|PS\) .+> \|^\s-+Server\s-+Comment$\)\'" from remote shell
> 21:28:42.250678 tramp-process-one-action (5) # Call
> ‘tramp-action-succeed’
> 21:28:42.250754 tramp-process-actions (6) #
> Enter WORKGROUP\nicolas's password:
> Try "help" to get a list of possible commands.
> smb: \>
> 21:28:42.250952 tramp-smb-maybe-open-connection (3) # Opening
> connection for //nicolas <at> win2k/C$...done
> 21:28:42.251024 tramp-smb-send-command (6) # dir "\*"
> 21:28:42.253268 tramp-smb-wait-for-output (6) #
>   arcldr.exe                       AHSR   150528  Thu Jun 19 13:05:04
> 2003
>   arcsetup.exe                     AHSR   163840  Thu Jun 19 13:05:04
> 2003
>   AUTOEXEC.BAT                        H        0  Sat Aug  7 11:51:22
> 2021
>   boot.ini                           HS      196  Sat Aug  7 11:45:37
> 2021
>   Bootfont.bin                     AHSR     4438  Thu Jun 21 04:00:00
> 2001
>   CONFIG.SYS                          H        0  Sat Aug  7 11:51:22
> 2021
>   Documents and Settings             DA        0  Sun Aug 22 11:23:12
> 2021
>   Downloads                           D        0  Sat Aug  7 19:01:48
> 2021
>   Inetpub                             D        0  Sat Aug 28 03:36:06
> 2021
>   IO.SYS                           AHSR        0  Sat Aug  7 11:51:22
> 2021
>   ket                                 D        0  Sun Sep  5 15:51:29
> 2021
>   Mags                                D        0  Sat Sep  4 15:53:38
> 2021
>   MSDOS.SYS                        AHSR        0  Sat Aug  7 11:51:22
> 2021
>   NTDETECT.COM                     AHSR    34724  Thu Jun 19 13:05:04
> 2003
>   ntldr                            AHSR   215520  Thu Jun 19 13:05:04
> 2003
>   pagefile.sys                      AHS 805306368  Wed Sep 15 21:15:15
> 2021
>   Program Files                     DAR        0  Sat Sep  4 15:39:11
> 2021
>   pub                                DA        0  Sat Aug 28 03:46:23
> 2021
>   RECYCLER                          DHS        0  Fri Aug 20 19:59:46
> 2021
>   src                                 D        0  Sat Aug 28 02:16:40
> 2021
>   System Volume Information         DHS        0  Sat Aug  7 12:05:17
> 2021
>   TAE                                 D        0  Wed Sep  8 00:21:02
> 2021
>   TASM4                               D        0  Wed Sep  8 00:21:02
> 2021
>   TASM5                               D        0  Wed Sep  8 00:21:04
> 2021
>   TASMED                              D        0  Wed Sep  8 00:21:42
> 2021
>   TEditAsm4                           D        0  Wed Sep  8 00:21:05
> 2021
>   TOOLS                               D        0  Wed Sep  8 00:21:05
> 2021
>   TSHELL                              D        0  Wed Sep  8 00:21:05
> 2021
>   TURBO_SHELL                         D        0  Wed Sep  8 00:21:05
> 2021
>   WASM1                               D        0  Wed Sep  8 00:21:06
> 2021
>   WINNT                              DA        0  Sat Aug 28 03:36:34
> 2021
>  
>         2873618 blocks of size 4096. 2330988 blocks available
> smb: \> smb: \>

Neither I understand what you want to tell me, nor is it helpful to see
trace buffer fragments only.

Have you tried the scenario I have asked for? Start a new Emacs
instance, connect only to a single share (be it C$), and navigate only
in this share.

Does this work smoothly? If not, pls send me the whole trace buffer of
this test.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 19:27:02 GMT) Full text and rfc822 format available.

Message #112 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 22:26:25 +0300
[Message part 1 (text/html, inline)]
[smb3.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Wed, 15 Sep 2021 19:47:02 GMT) Full text and rfc822 format available.

Message #115 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Wed, 15 Sep 2021 22:46:04 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 15:29:03 GMT) Full text and rfc822 format available.

Message #118 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Thu, 16 Sep 2021 17:28:31 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> emacs /smb:nicols <at> win2k:C$/whatsnew.txt
> just hangs

Shouldn't this be "emacs /smb:nicols <at> win2k:/C$/whatsnew.txt" ?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 15:31:01 GMT) Full text and rfc822 format available.

Message #121 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Thu, 16 Sep 2021 17:30:07 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi,

>> emacs /smb:nicols <at> win2k:C$/whatsnew.txt
>> just hangs
>
> Shouldn't this be "emacs /smb:nicols <at> win2k:/C$/whatsnew.txt" ?

Or even "emacs /smb:nicolas <at> win2k:/C$/whatsnew.txt" ?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 15:38:02 GMT) Full text and rfc822 format available.

Message #124 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Thu, 16 Sep 2021 17:37:36 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> Hi, sorry.  I tried to open C:\WhatsNew.txt, opened empty file and had
> this error in debug buffer:
>  
> 22:20:13.193126 tramp-handle-insert-file-contents (1) # File is
> missing: File ‘/smb:nicolas <at> win2k:/C$/WhatsNew.txt’ not found on
> remote host

This is NOT what I have asked for. A new Emacs session, and don't switch
to another share while testing:

> 22:19:59.775443 tramp-smb-maybe-open-connection (6) # smbclient //win2k/C$ -U nicolas -s /dev/null --option client min protocol=NT1
> 22:20:14.351558 tramp-smb-maybe-open-connection (6) # smbclient //win2k/scripts -U nicolas -s /dev/null --option client min protocol=NT1
> 22:20:14.478434 tramp-smb-maybe-open-connection (6) # smbclient //win2k/src -U nicolas -s /dev/null --option client min protocol=NT1

I understand that you work on different shares in parallel. Since this
is not the default workflow of the majority of the users, I want to
ensure first that working on the same share does not raise
problems. When this is clarified, we can check your complex scenario.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 16:25:01 GMT) Full text and rfc822 format available.

Message #127 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Thu, 16 Sep 2021 19:24:37 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 16:34:01 GMT) Full text and rfc822 format available.

Message #130 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Thu, 16 Sep 2021 19:33:23 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 16:36:02 GMT) Full text and rfc822 format available.

Message #133 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Thu, 16 Sep 2021 19:35:49 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 17:34:01 GMT) Full text and rfc822 format available.

Message #136 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Thu, 16 Sep 2021 19:33:02 +0200
[Message part 1 (text/plain, inline)]
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> I tried emacs --eval '(setq tramp-verbose 6)' /smb:nicolas <at> win2k:/C$/boot.ini
> debug buffer (very big, 12M this time)
> https://drive.google.com/file/d/1hSgQ2XUaZLGg8NSbb1sI1zluotn4Z4ye/view?usp=sharing

Very strange:

--8<---------------cut here---------------start------------->8---
19:29:40.987633 tramp-smb-maybe-open-connection (6) # smbclient //win2k/C$ -U nicolas -s /dev/null --option client min protocol=NT1
19:29:49.233560 tramp-search-regexp (1) # Quit: "Quit", ""

Try "help" to get a list of possible commands.
^[[?2004hsmb: \>
--8<---------------cut here---------------end--------------->8---

Very strange. There are ANSI ESCAPE sequences prior the "smb: >" prompt,
which are unknown to Tramp. I can reproduce the problem locally.

The appended patch fixes this for me, could you pls test?

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 22:19:02 GMT) Full text and rfc822 format available.

Message #139 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 01:18:41 +0300
[Message part 1 (text/html, inline)]
[smb5.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Thu, 16 Sep 2021 22:48:01 GMT) Full text and rfc822 format available.

Message #142 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 01:47:11 +0300
[Message part 1 (text/html, inline)]
[2021-09-17-014509_841x539_scrot.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 17 Sep 2021 05:37:02 GMT) Full text and rfc822 format available.

Message #145 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 07:36:20 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> this happens when pass file name as argument to Emacs, when browsing
> with C-x C-f, I don't know, sometimes it's success sometimes fail.
> Just right now I tried to open a file, first I got error message(tree
> connect failed: NT_STATUS_BAD_NETWORK_NAME etc)  suggesting to use
> tramp-cleanup-connection, then maybe half minute after the file was
> opened in buffer (I didn't even touch anything).

Strange. W/o this patch, I could reproduce the problem. With the patch,
everything is fine.

Well, I've pushed the patch to Emacs git. Could you pls pull, and
recompile. After this,

> I tried emacs --eval '(setq tramp-verbose 6)' /smb:nicolas <at> win2k:/C$/boot.ini

try it, again. If it fails, pls send me the whole debug buffer.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 17 Sep 2021 16:04:01 GMT) Full text and rfc822 format available.

Message #148 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 19:02:53 +0300
[Message part 1 (text/html, inline)]
[smb6.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 17 Sep 2021 16:56:01 GMT) Full text and rfc822 format available.

Message #151 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 18:55:04 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> I downloaded this archive
> http://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-f29abc3db6abf6a9ef54106990b749a12fc53211.tar.gz

Btw, it would be much easier if you install git locally, and clone the repository.

> It's pretty like what happened yesterday.   I get thet tramp/smb
> process killed window, then half minute after boot.ini file is opened,
> sometimes successfully sometimes not (I get empty buffer called
> boot.ini then).
> *debug* buffer attached (boot.ini was opened successfully)

So at least my fix has worked, calling "emacs --eval '(setq
tramp-verbose 6)' /smb:nicolas <at> win2k:/C$/boot.ini" opens the file
boot.ini. Progress!

But then, you haven't tested as I have asked you. There are changes in
the shares:

--8<---------------cut here---------------start------------->8---
18:52:21.852272 tramp-smb-maybe-open-connection (6) # smbclient //win2k/C$ -U nicolas -s /dev/null --option client min protocol=NT1
18:52:26.507803 tramp-smb-maybe-open-connection (6) # smbclient //win2k/scripts -U nicolas -s /dev/null --option client min protocol=NT1
18:52:30.838004 tramp-smb-maybe-open-connection (6) # smbclient //win2k/src -U nicolas -s /dev/null --option client min protocol=NT1
--8<---------------cut here---------------end--------------->8---

First the access to share "C$", then access to the shares "scripts" and
"src". We know already that this causes problems. Therefore, I would
like to ensure that navigating on the same share "C$" doesn't cause
problems. Could you pls test accordingly?

Thanks, and best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 17 Sep 2021 18:13:02 GMT) Full text and rfc822 format available.

Message #154 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 21:12:22 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 17 Sep 2021 18:20:01 GMT) Full text and rfc822 format available.

Message #157 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 20:19:34 +0200
[Message part 1 (text/plain, inline)]
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> Yes, I noticed it.  C:\scripts doesn't even exist.
> the instance of smbclient running according to ps -aux is
> /usr/bin/smbclient //win2k/C$ -U nicolas -s /dev/null --option client
> min protocol=NT1
> before I enter password.  Then I enter password and then half minute
> after:
> /usr/bin/smbclient //win2k/src -U nicolas -s /dev/null --option client
> min protocol=NT1
> I've no idea about these scripts and src 'shares'.

Hmm, maybe there are some cache data in the way? What happens, if you
start "emacs -Q ..."?

> Why am I prompted for password every time?  It's empty password saved
> many times into ~/.authinfo.

I'm already investigating this. I believe it is a bug in the auth.el
package (it shouldn't write empty passwords), but I haven't finished
analysis yet.

A workaround for Tramp might be the appended patch.

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 17 Sep 2021 18:50:01 GMT) Full text and rfc822 format available.

Message #160 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 21:49:18 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 17 Sep 2021 18:55:02 GMT) Full text and rfc822 format available.

Message #163 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 21:54:37 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Fri, 17 Sep 2021 19:04:02 GMT) Full text and rfc822 format available.

Message #166 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Fri, 17 Sep 2021 22:03:43 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 18 Sep 2021 07:55:01 GMT) Full text and rfc822 format available.

Message #169 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sat, 18 Sep 2021 09:54:43 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

>> It's confusing though that filenames in subfolders must be in
>> capitals.  Like I have >"file_id.diz" but I must refer it as
>> "FILE_ID.DIZ".
>
> No, it's FAR Manager converts filenames to lower letters.

I have no idea what's FAR. Should I?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 18 Sep 2021 07:58:01 GMT) Full text and rfc822 format available.

Message #172 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sat, 18 Sep 2021 09:57:05 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

>> A workaround for Tramp might be the appended patch.

> I applied this patch, it still asks password for the first time, but
> no longer during the session (previously it asked passw for every
> share when I browsed with dired).

That's the expected behaviour. smbclient, connecting to a remote
machine, will always ask for a password, whether needed or not. Tramp
simply shows it to you, and it remembers to use this empty password for
next smbclient requests.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 18 Sep 2021 08:02:02 GMT) Full text and rfc822 format available.

Message #175 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sat, 18 Sep 2021 10:01:41 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> Yes, it works with -Q.

Good. Now let's see what's up when calling Emacs w/o -Q.

Could you, pls, delete the file "~/.emacs.d/tramp" from the shell, and
start a new Emacs session?

Furthermore, do you use recentf? In that case, pls delete also
"~/.emacs.d/recentf" before you start Emacs.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 18 Sep 2021 09:12:02 GMT) Full text and rfc822 format available.

Message #178 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sat, 18 Sep 2021 12:10:47 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 18 Sep 2021 11:10:01 GMT) Full text and rfc822 format available.

Message #181 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sat, 18 Sep 2021 13:09:35 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

> removed both tramp and recentf, still same problem...
>
> What the hell this can be (\scripts\ver_linux and \src\emacs.c)?

src/emacs.c looks like a file from the Emacs repo. scripts/ver_linux I
don't know.

Since it works when you call "emacs -Q", please bisect your ~/.emacs
until you have found the problematic config. That is, comment half of
the file, and start a new Emacs session. If the problem persists,
continue with commenting again, half of the still active .emacs
file. Otherwise, the problematic config is in the commented .emacs
part. Uncomment this part, comment the other part, and continue.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 18 Sep 2021 15:28:02 GMT) Full text and rfc822 format available.

Message #184 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sat, 18 Sep 2021 18:27:13 +0300
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sat, 18 Sep 2021 17:03:02 GMT) Full text and rfc822 format available.

Message #187 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sat, 18 Sep 2021 19:02:27 +0200
Bad Blue Bull <ibmbull <at> yandex.ru> writes:

Hi,

> WHY?
> I had to comment out this:
> ----
> (setq tramp-rsh-end-of-line "\r\n") ;; opens empty buffer instead of
> file
> ----

IIRC, we have added this for your telnet server. Since we don't try it
any longer with telnet, you can remove the line.

> And also this
> ----
> (global-ede-mode t) ;; tree connect failed: NT_STATUS_BAD_NETWORK_NAME
> ----

That's it! See file cedet/ede/linux.el:

--8<---------------cut here---------------start------------->8---
                :proj-file "scripts/ver_linux"
--8<---------------cut here---------------end--------------->8---

And file cedet/ede/emacs.el
--8<---------------cut here---------------start------------->8---
                :proj-file "src/emacs.c"
--8<---------------cut here---------------end--------------->8---

So you must check, why ede loads these files. And how to suppress this.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Sun, 19 Sep 2021 18:37:02 GMT) Full text and rfc822 format available.

Message #190 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Sun, 19 Sep 2021 20:36:17 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi,

>>> A workaround for Tramp might be the appended patch.
>
>> I applied this patch, it still asks password for the first time, but
>> no longer during the session (previously it asked passw for every
>> share when I browsed with dired).
>
> That's the expected behaviour. smbclient, connecting to a remote
> machine, will always ask for a password, whether needed or not. Tramp
> simply shows it to you, and it remembers to use this empty password for
> next smbclient requests.

I've fixed this problem (I hope) in auth-source.el of Emacs git, commit
788a65862ed9b9bc0437a016cae7e3ba1282a1a7. I've pushed also my workaround
in tramp.el, because Tramp cooperates also with older Emacsen.

Could you give it a try?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50399; Package emacs. (Mon, 18 Oct 2021 08:28:02 GMT) Full text and rfc822 format available.

Message #193 received at 50399 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Bad Blue Bull <ibmbull <at> yandex.ru>,
 "50399 <at> debbugs.gnu.org" <50399 <at> debbugs.gnu.org>
Subject: Re: bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet)
Date: Mon, 18 Oct 2021 10:27:05 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

> I've fixed this problem (I hope) in auth-source.el of Emacs git, commit
> 788a65862ed9b9bc0437a016cae7e3ba1282a1a7. I've pushed also my workaround
> in tramp.el, because Tramp cooperates also with older Emacsen.
>
> Could you give it a try?

This was four weeks ago, and there wasn't any response, so I'm assuming
this change fixed the issue, and I'm closing this bug report.  If
there's still a problem in this area, please respond to the debbugs
address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 50399 <at> debbugs.gnu.org and Bad Blue Bull <ibmbull <at> yandex.ru> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 18 Oct 2021 08:28:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 15 Nov 2021 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.