There is a CACHE for passwd, group, and hosts name resolution: man nscd,
For example, if I do "/etc/init.d/nscd stop" before my script, my script
can work without sleep. I've not tryed "pwconv".
But the good solution for me is to use "useradd -m -d /home/bill bill".
Thanks to Hsu Dale, Chris Graves, Madhu Bandireddy, Carl Carpenter, Mark
Neill, Bill Sherman, Vince Merrell, and others who replied.
>SHORT QUESTION: Can I use a userid immediately after creating it?
>In a shell script, I do:
>chown bill /home/bill
>The system is responding: "chown: unknown user id bill"
>If I wait for several seconds before chown (for example sleep 5), it
>Is there an explanation?
> Thanks in advance for your help.
Luc Amouriaux / Ingénierie et Services Réseau Atos PRODUCTION
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:20 CDT