ARGHHHH! Simple problem I'm sure.

King, Dwayne dwayne.king at
Mon Nov 6 15:32:33 GMT 2000

A thousand thanks.  Things seem to be working OK now.  At least I can map
the drive OK - I'll get into verifying permissions etc later.

One last question (I promise!).  Isn't there a way to have the Samba
password inherit that of the unix account?  i.e. I map our NT domain name
"dwayne.king" to the unix name "dking", however enabling the samba account
with "smbpasswd -e dking" requires a separate password.  Obviously, I could
just set them the same, but I am thinking about when the unix pw changes.

Thanks again for all your help.


-----Original Message-----
From: Robert Dahlem [mailto:Robert.Dahlem at]
Sent: November 6, 2000 9:52 AM
To: King, Dwayne; samba at
Subject: RE: ARGHHHH! Simple problem I'm sure.


On Mon, 6 Nov 2000 08:41:07 -0500, King, Dwayne wrote:

>>Are you _really_ sure samba.pwd is the right file in the right 
>>directory? Does it have correct entries?

>You were right on the money there.  Didn't know about that.  So I 
>recreated the pw file, in the appropriate directory, and the correct 
>entries are in there.  Additionally, I have verified that all the 
>UID's match those in /etc/passwd

>I tried clearing out the logs, and then trying exactly one login.  
>What I got was the following repeated exactly 30 times:
>[2000/11/06 08:36:05, 0] passdb/smbpass.c:(179)
>  getsmbfilepwent: uids in the smbpasswd file must not be negative.

This is due to nobody's UID set to -2.

>[2000/11/06 08:36:05, 1] smbd/password.c:(511)
>  Account for user 'dking' was disabled.

You need to do 'smbpasswd -e dking'. This will enable the account.

>Upon checking, the UID for nobody is -2 in /etc/passwd   Is this 

This is likely to be how your system comes out of the box. So call it
"normal" if you like to. :-)

>Can I change this to any positive integer and not affect other system
>things?  Any signigicance to the number 30?

I would not mess around with the nobody account. Add a new user
smbguest and care for a positive UID. Try to log in as that user: it
should have a valid home directory and so on. Now disable/lock the
account, your passwd command surely has an option for this. On my
system this would be 'passwd -l smbguest'.

Add the user to smbpasswd with 'smbpasswd -a smbguest', make sure it is
enabled: 'smbpasswd -e smbguest'.

Then add 'guest account = smbguest' to the [global] section of your

Try again and report on the outcome. :-)


Robert.Dahlem at           Fax +49-69-432647

More information about the samba mailing list