Hi, On a Fedora box we installed Samba 3.0.8pre1-0.pre1.3 Accidently we've removed the samba password file. Now, we can't get access to Samba anymore. Is there a way to re-create it ? Or do we have to reinstall Samba ? BTW: We have no backup .... cheers, Andy
>to Samba anymore. Is there a way to re-create it ? Or do we have to > >You're going to have to recreate everyone's password entry using smbpasswd -a <username>. The first one should force an autocreate of the file.>BTW: We have no backup .... > >Shame shame :-) -- -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com
Well...I tried that already...but see the result. Guess we threw away some more then the passwd file only :) [root@itiu82 ~]# smbpasswd -a kannberg ERROR: empty passdb backend list! New SMB password: Retype new SMB password: invalid pdb_context specified! Failed to add entry for user kannberg. Failed to modify password entry for user kannberg Cheers, Andy -----Original Message----- From: Paul Gienger [mailto:pgienger@ae-solutions.com] Sent: dinsdag 7 december 2004 15:08 To: Kannberg, Andy Cc: 'samba@lists.samba.org' Subject: Re: [Samba] Problems with samba password file>to Samba anymore. Is there a way to re-create it ? Or do we have to > >You're going to have to recreate everyone's password entry using smbpasswd -a <username>. The first one should force an autocreate of the file.>BTW: We have no backup .... > >Shame shame :-) -- -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com
>ERROR: empty passdb backend list! > >Do you have a smb.conf file at all? If not then I suggess loading up swat and get one created. Alternately, since you are pretty much a clean slate at this point, perhaps a rpm install with the switch to put missing files back in. -- -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com
Hi, yes, there is a smb.conf file. But according to testparm the passdb backend was not set. So I set it to smbpasswd. Now it appears to work. Thanks for the help !! cheers, Andy -----Original Message----- From: Paul Gienger [mailto:pgienger@ae-solutions.com] Sent: dinsdag 7 december 2004 15:20 To: Kannberg, Andy Cc: 'samba@lists.samba.org' Subject: Re: [Samba] Problems with samba password file>ERROR: empty passdb backend list! > >Do you have a smb.conf file at all? If not then I suggess loading up swat and get one created. Alternately, since you are pretty much a clean slate at this point, perhaps a rpm install with the switch to put missing files back in. -- -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com