Re: [Samba] cant login with my samba password only with my linux password
Ok, I found the answer myself: the mechanism that set samba password same as linux password is pam! Commenting lines with pam_smbpass.so from /etc/pam.d/common-auth and /etc/pam.d/common-password solved my problem. Maybe Harmut problem to. From: Greg Nick To: "samba@lists.samba.org" Sent: Monday, February 13, 2012 10:37 AM Subject: Re: [Samba] cant login with my samba password only with my linux password I have same situation. Samba 3.5 Ubuntu 11.10. When user login in their linux account (desktop environment, or via ssh, or whatever...) samba password is reset to linux password. This is very annoying if you wish to keep different passwords. Can anybody tell me what mechanism set samba password same as linux password, when user login? -- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cant login with my samba password only with my linux password
I have same situation. Samba 3.5 Ubuntu 11.10. When user login in their linux account (desktop environment, or via ssh, or whatever...) samba password is reset to linux password. This is very annoying if you wish to keep different passwords. Can anybody tell me what mechanism set samba password same as linux password, when user login? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cant login with my samba password only with my linux password
On Sat, Dec 25, 2010 at 5:32 PM, Hartmut wrote: > Hello, > > I have a strange problem with my samba server. When I try to connect > with my (Windows)client and samba ask for the password, it's only > accepting my linux-user password, not my samba-user password (set with > smbpasswd and as root with smbpasswd ). > > And now the strange about it. When i change my sambapassword with > smbpasswd, and try to login from my client, then the samba-user password > is accepted. But after a reboot of my samba server, the server accepts > only the linux-user password. I have to (re)set the samba-user password > again with smbpasswd and only after that, I can login with the > samba-user password. > > Is there something wrong with my smb.conf (see below)? Or what else > could be the problem? > > > - > smb.conf: > [global] > # debuglevel = 1 > workgroup = Gruppe > server string = Datastring > wins support = no > dns proxy = no > > interfaces = 192.168.1.0/24 127.0.0.1/8 > bind interfaces only = yes > > log file = /var/log/samba/log.%m > max log size = 1000 > syslog = 0 > security = user > encrypt passwords = true > passdb backend = tdbsam > obey pam restrictions = yes > unix password sync = no > pam password change = no > map to guest = bad user > domain logons = no > load printers = no > domain master = no > usershare allow guests = no > > vfs objects = recycle > recycle: repository = .trash.bin > recycle: keeptree = Yes > recycle:versions = Yes > > [lager] > comment = Lager > path = /media/lager_hdd > public = no > valid users = user1 > read only = no > browseable = no > - > > Greetings > Hartmut > Now it's solved. I had to remove the libpam-smbpass package. Thanks to Tom from the Ubuntu list ;) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cant login with my samba password only with my linux password
On Tue, Jan 4, 2011 at 10:17 PM, Daniel Müller wrote: > What about, > unix password sync = yes instead of no I like to have two different passwords, one for the shell and one for samba. So that's not an option. > Did you try smbclient? yes, with the same result. If i enter my samba password, i get "Login failed". After changing with smbpasswd it works. After a reboot, the same problem, i can't access with my, 5 minutes ago set, samba password. > On some OS you need: > obey pam restrictions = no!? Tired this, with obey pam = yes and no. Same result. Rebooted after changing it... Same result... (oh i have rebooted so many times since the last days) > How did you add your users? > First linux? Then samba? First linux, then samba (does the other order works? i thought a samba user needs a linux user? whatever) > did you: smbpasswd user -e yes, tried this though, same result, can't login with my samba password... (and yes, i tried it with a reboot too ;) ) > > Good luck > > Daniel > On Tue, 4 Jan 2011 21:16:08 +0100, Hartmut > wrote: >> On Sat, Dec 25, 2010 at 5:32 PM, Hartmut > wrote: >>> Hello, >>> >>> I have a strange problem with my samba server. When I try to connect >>> with my (Windows)client and samba ask for the password, it's only >>> accepting my linux-user password, not my samba-user password (set with >>> smbpasswd and as root with smbpasswd ). >>> >>> And now the strange about it. When i change my sambapassword with >>> smbpasswd, and try to login from my client, then the samba-user > password >>> is accepted. But after a reboot of my samba server, the server accepts >>> only the linux-user password. I have to (re)set the samba-user password >>> again with smbpasswd and only after that, I can login with the >>> samba-user password. >>> >>> Is there something wrong with my smb.conf (see below)? Or what else >>> could be the problem? >>> >>> >>> - >>> smb.conf: >>> [global] >>> # debuglevel = 1 >>> workgroup = Gruppe >>> server string = Datastring >>> wins support = no >>> dns proxy = no >>> >>> interfaces = 192.168.1.0/24 127.0.0.1/8 >>> bind interfaces only = yes >>> >>> log file = /var/log/samba/log.%m >>> max log size = 1000 >>> syslog = 0 >>> security = user >>> encrypt passwords = true >>> passdb backend = tdbsam >>> obey pam restrictions = yes >>> unix password sync = no >>> pam password change = no >>> map to guest = bad user >>> domain logons = no >>> load printers = no >>> domain master = no >>> usershare allow guests = no >>> >>> vfs objects = recycle >>> recycle: repository = .trash.bin >>> recycle: keeptree = Yes >>> recycle:versions = Yes >>> >>> [lager] >>> comment = Lager >>> path = /media/lager_hdd >>> public = no >>> valid users = user1 >>> read only = no >>> browseable = no >>> - >>> >>> Greetings >>> Hartmut >>> >> >> The problem still exist. Has no one a clue? > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cant login with my samba password only with my linux password
What about, unix password sync = yes instead of no Did you try smbclient? On some OS you need: obey pam restrictions = no!? How did you add your users? First linux? Then samba? did you: smbpasswd user -e Good luck Daniel On Tue, 4 Jan 2011 21:16:08 +0100, Hartmut wrote: > On Sat, Dec 25, 2010 at 5:32 PM, Hartmut wrote: >> Hello, >> >> I have a strange problem with my samba server. When I try to connect >> with my (Windows)client and samba ask for the password, it's only >> accepting my linux-user password, not my samba-user password (set with >> smbpasswd and as root with smbpasswd ). >> >> And now the strange about it. When i change my sambapassword with >> smbpasswd, and try to login from my client, then the samba-user password >> is accepted. But after a reboot of my samba server, the server accepts >> only the linux-user password. I have to (re)set the samba-user password >> again with smbpasswd and only after that, I can login with the >> samba-user password. >> >> Is there something wrong with my smb.conf (see below)? Or what else >> could be the problem? >> >> >> - >> smb.conf: >> [global] >> # debuglevel = 1 >> workgroup = Gruppe >> server string = Datastring >> wins support = no >> dns proxy = no >> >> interfaces = 192.168.1.0/24 127.0.0.1/8 >> bind interfaces only = yes >> >> log file = /var/log/samba/log.%m >> max log size = 1000 >> syslog = 0 >> security = user >> encrypt passwords = true >> passdb backend = tdbsam >> obey pam restrictions = yes >> unix password sync = no >> pam password change = no >> map to guest = bad user >> domain logons = no >> load printers = no >> domain master = no >> usershare allow guests = no >> >> vfs objects = recycle >> recycle: repository = .trash.bin >> recycle: keeptree = Yes >> recycle:versions = Yes >> >> [lager] >> comment = Lager >> path = /media/lager_hdd >> public = no >> valid users = user1 >> read only = no >> browseable = no >> - >> >> Greetings >> Hartmut >> > > The problem still exist. Has no one a clue? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cant login with my samba password only with my linux password
After you change the samba password for the 2nd time, does it stick? When you change the password, does the /etc/samba/smbpasswd change? I can't imagine it matters, but why are you using "passwd: compat" instead of "passwd: files" in nsswitch.conf ? What happens if you run smbpasswd as root to change a user's password? On 12/27/2010 12:30 PM, Hartmut wrote: On Mon, Dec 27, 2010 at 2:16 AM, Gaiseric Vandal wrote: I can't see any way that, with your configuration, samba could be using your linux password as a samba password. You would have to be using plain text passwords in windows have samba authenticate it against your linux password.Is it really using your "linux" password, or at some point was your samba password the same as your linux password? The samba and linux passwords was always different. Or did you configure pam or nsswitch.conf to have linux authenticate against "windows" passwords? No. I use ubuntu 10.10 and the default configuration. See below my nsswitch.conf, but i think it's the default and does not matter. Did you try running "testparm -v" in case there are some parameters with unexpected defaults? Did this, see output below. But i can't find a "wrong" or unexpected paramter. Did you try disabling "obey pam restrictions?" Maybe that is preventing the password change? Yes, i tried this. The same result :( On Sat, Dec 25, 2010 at 11:32 AM, Hartmut wrote: Hello, I have a strange problem with my samba server. When I try to connect with my (Windows)client and samba ask for the password, it's only accepting my linux-user password, not my samba-user password (set with smbpasswd and as root with smbpasswd). And now the strange about it. When i change my sambapassword with smbpasswd, and try to login from my client, then the samba-user password is accepted. But after a reboot of my samba server, the server accepts only the linux-user password. I have to (re)set the samba-user password again with smbpasswd and only after that, I can login with the samba-user password. Is there something wrong with my smb.conf (see below)? Or what else could be the problem? - smb.conf: [global] # debuglevel = 1 workgroup = Gruppe server string = Datastring wins support = no dns proxy = no interfaces = 192.168.1.0/24 127.0.0.1/8 bind interfaces only = yes log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = no pam password change = no map to guest = bad user domain logons = no load printers = no domain master = no usershare allow guests = no vfs objects = recycle recycle: repository = .trash.bin recycle: keeptree = Yes recycle:versions = Yes [lager] comment = Lager path = /media/lager_hdd public = no valid users = user1 read only = no browseable = no - Greetings Hartmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[lager]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] dos charset = CP850 unix charset = UTF-8 display charset = LOCALE workgroup = Gruppe realm = netbios name = SERVER1 netbios aliases = netbios scope = server string = Datastring interfaces = 192.168.1.0/24, 127.0.0.1/8 bind interfaces only = Yes security = USER auth methods = encrypt passwords = Yes update encrypted = No client schannel = Auto server schannel = Auto allow trusted domains = Yes map to guest = Bad User null passwords = No obey pam restrictions = Yes password server = * smb passwd file = /etc/samba/smbpasswd private dir = /etc/samba passdb backend = tdbsam algorithmic rid base = 1000 root directory = guest account = nobody enable privileges = Yes pam password change = No passwd program = passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No passwd chat timeout = 2 check password script = username map = password level = 0 username level = 0 unix passwo
Re: [Samba] cant login with my samba password only with my linux password
On Sat, Dec 25, 2010 at 5:32 PM, Hartmut wrote: > Hello, > > I have a strange problem with my samba server. When I try to connect > with my (Windows)client and samba ask for the password, it's only > accepting my linux-user password, not my samba-user password (set with > smbpasswd and as root with smbpasswd ). > > And now the strange about it. When i change my sambapassword with > smbpasswd, and try to login from my client, then the samba-user password > is accepted. But after a reboot of my samba server, the server accepts > only the linux-user password. I have to (re)set the samba-user password > again with smbpasswd and only after that, I can login with the > samba-user password. > > Is there something wrong with my smb.conf (see below)? Or what else > could be the problem? > > > - > smb.conf: > [global] > # debuglevel = 1 > workgroup = Gruppe > server string = Datastring > wins support = no > dns proxy = no > > interfaces = 192.168.1.0/24 127.0.0.1/8 > bind interfaces only = yes > > log file = /var/log/samba/log.%m > max log size = 1000 > syslog = 0 > security = user > encrypt passwords = true > passdb backend = tdbsam > obey pam restrictions = yes > unix password sync = no > pam password change = no > map to guest = bad user > domain logons = no > load printers = no > domain master = no > usershare allow guests = no > > vfs objects = recycle > recycle: repository = .trash.bin > recycle: keeptree = Yes > recycle:versions = Yes > > [lager] > comment = Lager > path = /media/lager_hdd > public = no > valid users = user1 > read only = no > browseable = no > - > > Greetings > Hartmut > The problem still exist. Has no one a clue? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] cant login with my samba password only with my linux password
On Mon, Dec 27, 2010 at 2:16 AM, Gaiseric Vandal wrote: > I can't see any way that, with your configuration, samba could be > using your linux password as a samba password. You would have to be > using plain text passwords in windows have samba authenticate it > against your linux password. Is it really using your "linux" > password, or at some point was your samba password the same as your > linux password? The samba and linux passwords was always different. > > Or did you configure pam or nsswitch.conf to have linux authenticate > against "windows" passwords? No. I use ubuntu 10.10 and the default configuration. See below my nsswitch.conf, but i think it's the default and does not matter. > Did you try running "testparm -v" in case there are some parameters > with unexpected defaults? Did this, see output below. But i can't find a "wrong" or unexpected paramter. > Did you try disabling "obey pam restrictions?" Maybe that is > preventing the password change? Yes, i tried this. The same result :( > On Sat, Dec 25, 2010 at 11:32 AM, Hartmut wrote: >> Hello, >> >> I have a strange problem with my samba server. When I try to connect >> with my (Windows)client and samba ask for the password, it's only >> accepting my linux-user password, not my samba-user password (set with >> smbpasswd and as root with smbpasswd ). >> >> And now the strange about it. When i change my sambapassword with >> smbpasswd, and try to login from my client, then the samba-user password >> is accepted. But after a reboot of my samba server, the server accepts >> only the linux-user password. I have to (re)set the samba-user password >> again with smbpasswd and only after that, I can login with the >> samba-user password. >> >> Is there something wrong with my smb.conf (see below)? Or what else >> could be the problem? >> >> >> - >> smb.conf: >> [global] >> # debuglevel = 1 >> workgroup = Gruppe >> server string = Datastring >> wins support = no >> dns proxy = no >> >> interfaces = 192.168.1.0/24 127.0.0.1/8 >> bind interfaces only = yes >> >> log file = /var/log/samba/log.%m >> max log size = 1000 >> syslog = 0 >> security = user >> encrypt passwords = true >> passdb backend = tdbsam >> obey pam restrictions = yes >> unix password sync = no >> pam password change = no >> map to guest = bad user >> domain logons = no >> load printers = no >> domain master = no >> usershare allow guests = no >> >> vfs objects = recycle >> recycle: repository = .trash.bin >> recycle: keeptree = Yes >> recycle:versions = Yes >> >> [lager] >> comment = Lager >> path = /media/lager_hdd >> public = no >> valid users = user1 >> read only = no >> browseable = no >> - >> >> Greetings >> Hartmut >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > -- Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[lager]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] dos charset = CP850 unix charset = UTF-8 display charset = LOCALE workgroup = Gruppe realm = netbios name = SERVER1 netbios aliases = netbios scope = server string = Datastring interfaces = 192.168.1.0/24, 127.0.0.1/8 bind interfaces only = Yes security = USER auth methods = encrypt passwords = Yes update encrypted = No client schannel = Auto server schannel = Auto allow trusted domains = Yes map to guest = Bad User null passwords = No obey pam restrictions = Yes password server = * smb passwd file = /etc/samba/smbpasswd private dir = /etc/samba passdb backend = tdbsam algorithmic rid base = 1000 root directory = guest account = nobody enable privileges = Yes pam password change = No passwd program = passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No passwd chat timeout = 2 check password script = username map = password level = 0 username level = 0 unix password sync = No restrict anonymous = 0 lanman auth = No ntlm auth = Yes client NTLMv2 auth = No client lanman auth = No client plaintext auth = No preload modules = dedicated keytab file = kerberos method = default ma
Re: [Samba] cant login with my samba password only with my linux password
I can't see any way that, with your configuration, samba could be using your linux password as a samba password. You would have to be using plain text passwords in windows have samba authenticate it against your linux password.Is it really using your "linux" password, or at some point was your samba password the same as your linux password? Or did you configure pam or nsswitch.conf to have linux authenticate against "windows" passwords? Did you try running "testparm -v" in case there are some parameters with unexpected defaults? Did you try disabling "obey pam restrictions?" Maybe that is preventing the password change? On Sat, Dec 25, 2010 at 11:32 AM, Hartmut wrote: > Hello, > > I have a strange problem with my samba server. When I try to connect > with my (Windows)client and samba ask for the password, it's only > accepting my linux-user password, not my samba-user password (set with > smbpasswd and as root with smbpasswd ). > > And now the strange about it. When i change my sambapassword with > smbpasswd, and try to login from my client, then the samba-user password > is accepted. But after a reboot of my samba server, the server accepts > only the linux-user password. I have to (re)set the samba-user password > again with smbpasswd and only after that, I can login with the > samba-user password. > > Is there something wrong with my smb.conf (see below)? Or what else > could be the problem? > > > - > smb.conf: > [global] > # debuglevel = 1 > workgroup = Gruppe > server string = Datastring > wins support = no > dns proxy = no > > interfaces = 192.168.1.0/24 127.0.0.1/8 > bind interfaces only = yes > > log file = /var/log/samba/log.%m > max log size = 1000 > syslog = 0 > security = user > encrypt passwords = true > passdb backend = tdbsam > obey pam restrictions = yes > unix password sync = no > pam password change = no > map to guest = bad user > domain logons = no > load printers = no > domain master = no > usershare allow guests = no > > vfs objects = recycle > recycle: repository = .trash.bin > recycle: keeptree = Yes > recycle:versions = Yes > > [lager] > comment = Lager > path = /media/lager_hdd > public = no > valid users = user1 > read only = no > browseable = no > - > > Greetings > Hartmut > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba