> 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).
 


17.09.2021, 21:19, "Michael Albinus" <michael.albinus@gmx.de>:

Bad Blue Bull <ibmbull@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.