caching of /etc/passwd?

Jeff_Kintscher at Jeff_Kintscher at
Wed Jan 26 17:41:52 GMT 2000

I've found that error goes away if I use passwd to set the user's password
before calling smbpasswd.

Jeff Kintscher

Thomas Stroesslin <tmstroes at> on 01/26/2000 07:46:06 AM

Please respond to tmstroes at

Sent by:  Thomas Stroesslin <tmstroes at>

To:   Multiple recipients of list SAMBA-TECHNICAL <samba-technical at>
cc:    (Jeff Kintscher/HQ/3Com)
Subject:  caching of /etc/passwd?

from a perl-script, I do:

@error = `useradd -g users -d $4 -s /bin/bash -c \"$2\" -m $1`;

and later:

@smbpass_error= `smbpasswd -a $1 $3`;

where $1 is the username (gam_test) and $3 the password

Unfortunately, I always get:
User "gam_test" was not found in system password file.

when open the /etc/passwd file after creating the user and before trying
to set the smb password, I can see that the user has actually been
what's wrong there?


Thomas Stroesslin
E-Mail: mailto:tmstroes at
ICQ#: 31950234

More information about the samba-technical mailing list