caching of /etc/passwd?

Jeff_Kintscher at 3com.com Jeff_Kintscher at 3com.com
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 ee.ethz.ch> on 01/26/2000 07:46:06 AM

Please respond to tmstroes at ee.ethz.ch

Sent by:  Thomas Stroesslin <tmstroes at ee.ethz.ch>


To:   Multiple recipients of list SAMBA-TECHNICAL <samba-technical at samba.org>
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
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