errors creating users via rpm

Olaf Rempel razzor@xxxxxxxxxxxxx
Tue Oct 18 20:10:47 CEST 2005


hi list

when running nscd and a package adds a user, the script will fail
(nscd caches old passwd table):

Installing net-snmp - useradd: unknown group snmpd
error: %pre(net-snmp-5.2.1.2-2tr.i586) scriptlet failed, exit status 6
error:   install: %pre scriptlet failed (2), skipping net-snmp-5.2.1.2-2tr

I think we must run 
$ nscd -i passwd
$ nscd -i group
after creating users/groups and before using them in rpm scripts.
(if nscd is running)

Or is there a simpler way to avoid these errors (when running nscd)?

Olaf



More information about the tsl-contrib-discuss mailing list