Samba Share user/password error after update
Solution 1
I first added the line client use spnego = no
at the end of file /etc/samba/smb.conf
, but it did not work. After I placed the line near the beginning of the file, the network drives worked.
Solution 2
I had exactly the same problem. Adding
client use spnego = no
to the [global] section of /etc/samba/smb.conf
solved the problem in my case.
Apparently the default value changed to "yes" after the update to v.4.3.8, so I needed to explicitly set it.
See the online manpage for reference.
Solution 3
I tried use smbclient to see what happened I got this:
SMB server does not support EXTENDED_SECURITY but 'client use spnego = yes and 'client ntlmv2 auth = yes'
I think this means samba client is telling the samba server use features which are not there. From use Samba's note above with this link I found this:
The impact of '
client ntlmv2 auth = yes
' is that by default we will not use NTLM (NT Local Machine) authentication as a client.
Since I am not using any extended security I just turn this off as
"client ntlmv2 auth = no
" in /etc/samba/smb.conf
. I have to added a line to override the default. Everything is working again.
Related videos on Youtube
user531897
Updated on September 18, 2022Comments
-
user531897 over 1 year
this is the first time that I couldn't find an answer so this is my first question. I will provide as much information as possible. I have an ASUS router that has 2 HDDs. There is only 1 username/password to access the media while on the network. My PC no longer seems to be able to access it after an update.
After initially entering the login credentials and selecting "Remember forever" I had always (over 2 years) been able to access the drives by going to "Browse Network" in nautilus and clicking on the Router's Icon then clicking the folder I want to access. Today I had a security update which contained the following:
Now when I go to access the folders on the HDDs this pops up:
I select "Registered User" enter the username, password and select "Remember forever" then click Connect and the box pops back up greyed out with the fields reset to defaults.
If I click the connect button again the same greyed out pop-up keeps coming back over and over.
If I manually close it. A brand new pop-up appears that allows me to enter in the credentials. However, if I enter them again nautilus simply closes and I occassionally get a pop-up saying that Ubuntu has encountered and internal error etc.
There are 3 Phones, 1 Tablet, 1 Win7 PC, and another Ubuntu 15.10 PC that can connect to the network drives and read/write without issue. I should add that I ignored the update mentioned above on the other Ubuntu PC once I started to have this issue on mine.
So far the only way I can access the HDDs with my PC is to turn off my router's security for samba access. I really have no idea how to remedy this or how to get it back to the way it was.
Thanks in advance for any help.
-
Doug Smythies about 8 yearsI used to have the same setup as you, and no it doesn't work anymore on 16.04. I spent a lot of time trying to make it work. Those same changes have just, hours ago, been released back to 15.10 and 14.04. In my case I added myself and my password to the samba users stuff (i.e. `sudo smbpasswd -a doug'), whereas I has never had to do that before.
-
AllGamer about 8 yearsI just discovered the bad way, about the latest update as well.. still trying to get my samba server to accept windows users again. Android, Linux, and Apple devices have no problem accessing samba shares only Windows machines are unable to access samba after the latest ubuntu patch for samba.
-
JanC about 8 yearsRecently there was a serious security flaw detected in the Windows file sharing protocol as included in Windows and implemented by Samba for linux/unix systems. The recent updates of Windows & Samba contained the fix for that, but it seems like that breaks some setups, both on Windows & on linux…
-
JanC about 8 yearsThere might be more information at samba.org/samba/latest_news.html#4.4.2
-
JanC about 8 years
-
-
user531897 about 8 yearsI installed winbind. Restarted samba. Rebooted just in case. Still no change. Thank you though.
-
user531897 about 8 yearsI added the line of text as your suggested to no avail. The problem still persists. Thank you though.
-
stack_horst about 8 years@user531897 did you check if there are any other values that changed their default after the update? e.g. "client use spnego" was not set in my smb.conf. This was ok before, as per the previous version the default value was "no". but now they changed it to "yes", so I had to set it manually. Maybe for you there is a similar problem with another option?
-
Mitch about 8 yearsWelcome to Ask Ubuntu! Please don't add "thanks" as answers. Invest some time in the site and you will gain sufficient privileges to upvote answers you like, which is the Ask Ubuntu way of saying thank you.
-
user531897 about 8 yearsoverall you had the right answer it apparently just had to be at the very top of the file (as stated by user18778) right after the global settings break... After a reboot everything works as it did before. Thank you.
-
user531897 about 8 yearsCheers. This is what did the trick. I just had to put the line near the top right after the global settings break. Thanks.