Hi all! I'm having some wierd problems with my Samba v2.2.3a install on a Slackware 7 box. The Samba server is a member of an NT 4 Domain and I am having intermittent drive mapping problems. We have a logon script that maps several drives for users on our NT 4 box. Those drives are on our Samba server. Sometimes when the script runs I get 1326 errors on my workstations (Win2k SP2), and am prompted to enter my password for the share. When I enter my password it still fails. Its almost as though the Samba box can't find the NT4 PDC, but there isn't a loss of connectivity between the linux server and the NT4 PDC. This is what I get in the samba log: [2002/06/03 16:03:46, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/06/03 16:03:46, 1] smbd/password.c:pass_check_smb(555) Couldn't find user 'caseyl' in passdb. Here's an excerpt from my smb.conf: [global] wins server = 192.168.100.5 domain master = no dns proxy = no encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 max log size = 50 preferred master = no security = server password server = rrpdc1 veto files = /.*/ /.Apple*/ /.bin/ /Network Trash Folder/ /TheVolumeSettingsFolder/ /TheFi ndByContentFolder/Icon?/Desktop/DesktopFolderDB/ delete veto files = Yes local master = no workgroup = RR server string = LVFS Samba [%v, %h] log level = 1 log file = /usr/local/samba/var/log.%m netbios name = LVFS os level = 0 [homes] comment = Home Directories browseable = no writable = yes [public] path = /export/fs/PUBLIC writable = yes only guest = yes create mode = 0666 directory mode = 2777 comment = Public Folder (world writable) printable = no public = yes [depts] comment = Department Folders path = /export/fs/depts writable = yes valid users = @users write list = @users create mode = 0660 directory mode = 2770 admin users = caseyl Any help would be greatly appreciated. TIA< -casey
Hi I recently setup samba 2.2.5-1 on a Redhat7.2 box. I added a user same as on my w2k machine. everything seems ok but when i try to login to linux box via neighboorhood it keeps asking password and i can not login anyway. When i alanyzed the log file the error is as below: [2002/07/30 11:59:39, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/07/30 11:59:39, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. my conf file is as simlple as possible and like below: ----------------------------------------------------- # Global parameters workgroup = WORKGROUP encrypt passwords=yes [test] comment = For testing only, please path = /export/samba/test read only = no guest ok = yes ----------------------------------------------------- I ve added the user with smbpasswd -a username command as same user and pass on my w2k machine. Can anybody help me figure out this problem please? Thanks Deniz __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com
Many thanks for the help.> Date: Tue, 4 Nov 2003 23:57:24 +0100 > From: "rruegner" <robowarp@gmx.de> > Subject: Re: [Samba] unable to open passdb database. > To: "Ben Kim" <bkim@edsun.coe.tamu.edu>, <samba@lists.samba.org>> the log says that the passwd file was not found or cant be openend ( > permission) > what passbackend do you use i e. /etc/samba/smbpasswd etc ? > check your settings in smb.confIn fact, this is the log at debug level 10 : [2003/11/05 16:29:58, 1] smbd/password.c:server_validate(1101) password server is not connected [2003/11/05 16:29:58, 10] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1346) pdb_getsampwnam: search by name: testuser [2003/11/05 16:29:58, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(167) startsmbfilepwent_internal: opening file /etc/samba/smbpasswd [2003/11/05 16:29:58, 2] passdb/pdb_smbpasswd.c:startsmbfilepwent(170) startsmbfilepwent_internal: unable to open file /etc/samba/smbpasswd. Error was No such file or directory [2003/11/05 16:29:58, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369) unable to open passdb database. It seems that if the password server is not available, samba by design falls back to smbpasswd... (I don't think I specified it so anywhere.) And I can't understand why "server is not connected" after some time... This is my smb.conf setting workgroup = MYDOM security = server password server = ADSERVER encrypt passwords = yes The following are commented out, should I explicitly do something? (more than commenting out?) # smb passwd file = /etc/samba/smbpasswd # unix password sync = Yes # passwd program = /usr/bin/passwd %u # passwd chat = ...... # pam password change = yes # obey pam restrictions = yes Initially users can use the share, change the password, then use the share again without problem. But after some time, I get this error. (When I click the samba machine, in the "Entire Network", a "Enter Network Password" logon box pops up. It asks for "Connect As:" and "Password", but no combinations work, and we see the above error in the log. Strangely, if I restart smb server, users can connect to the share without problem, without doing anything. We have some account lockout problem on the windows side, but it doesn't seem to be the problem (especially because smb restart clears the problem temporarily), and I really wonder what's wrong. Regards, Ben