[Samba] unable to open passdb database

Ben Kim bkim at edsun.coe.tamu.edu
Wed Nov 5 22:46:27 GMT 2003


Many thanks for the help. 

> Date: Tue, 4 Nov 2003 23:57:24 +0100
> From: "rruegner" <robowarp at gmx.de>
> Subject: Re: [Samba] unable to open passdb database.
> To: "Ben Kim" <bkim at edsun.coe.tamu.edu>, <samba at 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.conf

In 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




More information about the samba mailing list