smbpasswd database is corrupt error

Tim Winders twinders at SPC.cc.tx.us
Fri Nov 20 14:44:24 GMT 1998


I agree that their should be a check to make sure the user trying to login
exists in the unix passwd file.  HOWEVER, my problem was that the entries
for a couple of NT boxes (the $ user entries) had been removed from the
unix passwd file (Digital Unix still does this).  When the check to see if
the smbpasswd user existed in the unix passwd file came to these entries,
it exitied and no user listed AFTER those entries in the smbpasswd could
login.  Ugh!

=== Tim

---------------------------------------------------------------------
|  Tim Winders, CNE, MCSE     |  Email:  Tim.Winders at SPC.cc.tx.us   |
|  Network Administrator      |  Phone:  806-894-9611 x 2369        |
|  South Plains College       |  Fax:    806-897-4711               |
|  Levelland, TX  79336       |                                     |
---------------------------------------------------------------------


On Fri, 20 Nov 1998, Luke Kenneth Casson Leighton wrote:

> yes, it's a bit stupid: no checks against UNIX should be made anywhere in
> the passdb code.  HOWEVER, there should be checks made that the unix user
> or unix group (passdb and groupdb respectively) exists.
> 
> this will give consistent results and also keep passdb and groupdb clean.
> 
> On Thu, 19 Nov 1998, Tim Winders wrote:
> 
> > OK.  I am using the cvs HEAD from this morning and I found a problem with
> > the way smbd deals with the smbpasswd database.  If a username is in the
> > smbpasswd file but *NOT* in the unix passwd file it reports an error that
> > the smbpasswd database is corrupt and will not let the user login.  I
> > *THINK* this only occurs to users listed AFTER the "problem" in the
> > smbpasswd file.  I don't think previous alpha versions worked the same
> > way.
> > 
> > I have removed the offending entry in smbpasswd and my users can login
> > again.
> > 
> > === Tim
> > 
> > ---------------------------------------------------------------------
> > |  Tim Winders, CNE, MCSE     |  Email:  Tim.Winders at SPC.cc.tx.us   |
> > |  Network Administrator      |  Phone:  806-894-9611 x 2369        |
> > |  South Plains College       |  Fax:    806-897-4711               |
> > |  Levelland, TX  79336       |                                     |
> > ---------------------------------------------------------------------
> > 
> > 
> > 
> 
> <a href="mailto:lkcl at samba.anu.edu.au" > Luke Kenneth Casson Leighton  </a>
> <a href="http://mailhost.cb1.com/~lkcl"> Samba and Network Development </a>
> <a href="http://www.samba.co.uk"       > Samba and Network Consultancy </a>
> 
> 



More information about the samba-technical mailing list