schallstrom
June 12th, 2008, 12:42 PM
I'm running Ubuntu 8.04 Server Edition with a samba server. I set the samba password for the user like this:
$ sudo smbpasswd -a user
After doing it I can access the share with the password I configured via smbpasswd.
Now comes the strange thing: After a few minutes I can't access the share via this password anymore but only with the unix password of the user on the server! When I then set the password on the server again via smbpasswd, I again am able to access the share via this password and after a few minutes the story starts from the beginning.
My conclusion was that samba is on hardy per default configured in a way that it synchronizes the smbpasswd passwords with the shadow passwords and disabled this in smb.conf explicitly:
unix password sync = No
But to no avail... Whats going on?
I don't want the samba password to be the same as the unix password as I want to store the samba password in plain text in a credentials file on the client so I don't always have to type it when I mount the share.
Any hints would be greatly appreciated.
$ sudo smbpasswd -a user
After doing it I can access the share with the password I configured via smbpasswd.
Now comes the strange thing: After a few minutes I can't access the share via this password anymore but only with the unix password of the user on the server! When I then set the password on the server again via smbpasswd, I again am able to access the share via this password and after a few minutes the story starts from the beginning.
My conclusion was that samba is on hardy per default configured in a way that it synchronizes the smbpasswd passwords with the shadow passwords and disabled this in smb.conf explicitly:
unix password sync = No
But to no avail... Whats going on?
I don't want the samba password to be the same as the unix password as I want to store the samba password in plain text in a credentials file on the client so I don't always have to type it when I mount the share.
Any hints would be greatly appreciated.