nscd confuses my preinst :-(
I have a big problem with this new glibc2 "nscd" program. This program
seems to be a cache for the /etc/passwd and /etc/shadow:
-=(/home/ch/debian/DOC)# adduser --system mysql
Adding system user mysql...
Adding new user mysql (100) with group nogroup.
Home directory /home/mysql already exists.
-=(/home/ch/debian/DOC)# usermod -c ttt mysql
usermod: user mysql does not exist
Some seconds later it would have been worked.
Now what should I do ? I can't use the libc "getuserbyname" functions
that would use the cache. Should I randomly put some sleep calls
into this script ?
I think this could be a problem for many installation scripts....
Any suggestions ?
Linux - the choice of the GNU generation. Join the Debian Project
Christian Hammers * Oberer Heidweg 35 * D-52477 Alsdorf * Tel: 02404-25624
50 3C 52 26 3E 52 E7 20 D2 A1 F5 16 C4 C9 D4 D3 1024/925BCB55 1997/11/01