caching of /etc/passwd?

Thomas Stroesslin tmstroes at ee.ethz.ch
Wed Jan 26 15:29:03 GMT 2000


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
added...
what's wrong there?

tom

---------------------------------------
Thomas Stroesslin
E-Mail: mailto:tmstroes at ee.ethz.ch
ICQ#: 31950234




More information about the samba-technical mailing list