Hartmut
2010-Dec-25 16:32 UTC
[Samba] cant login with my samba password only with my linux password
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 <user>). 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
Gaiseric Vandal
2010-Dec-27 01:16 UTC
[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 <freemlist at googlemail.com> 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 <user>). > > 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 >
Hartmut
2011-Jan-04 20:16 UTC
[Samba] cant login with my samba password only with my linux password
On Sat, Dec 25, 2010 at 5:32 PM, Hartmut <freemlist at googlemail.com> 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 <user>). > > 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?
Hartmut
2011-Jan-05 22:33 UTC
[Samba] cant login with my samba password only with my linux password
On Sat, Dec 25, 2010 at 5:32 PM, Hartmut <freemlist at googlemail.com> 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 <user>). > > 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 ;)