Request for discussion: Package installation problem withrunning nscd

Oliver Falk oliver at linux-kernel.at
Sat May 21 07:42:57 UTC 2005


> > I have a fcdev system running at my site that runs with ldap/nscd.
> > 
> > The problem I'm running into - some times - is:
> > * nscd is running and caches groups/passwd
> > * I try to install a package
> > * package does the usual groupadd -r <somegroup> >/dev/null 2>&1 or 
> > useradd ...
> > * package' file list lists %attr(-, <somegroup>, <someuser>) or 
> > something like that.
> > 
> > But as nscd caches the passwd/group it thinks that <somegroup> or 
> > <someuser> doesn't exist and rpm tell's me:
> > 
> >    warning: group <somegroup> does not exist - using root
> 
> Things should Just Work(tm).
> 
> nscd in FC has been patched to prune the password, group and 
> hosts caches when it receives a SIGHUP, and shadow-utils has 
> been patched to HUP nscd on relevant operations.
> http://cvs.fedora.redhat.com/viewcvs/devel/glibc/glibc-fedora.
> patch?rev=.&view=auto
> http://cvs.fedora.redhat.com/viewcvs/devel/shadow-utils/shadow
> -4.0.3-nscd.patch?rev=.&view=auto
> 
> There was a bug at FC2'ish time where the nscd pid file had 
> moved so that the HUP never happened.  But that was fixed last year...
> https://bugzilla.redhat.com/125421

Hmmm. But why does it still happen? :-///

My versions:
glibc-2.3.5-6
nscd-2.3.5-6
shadow-utils-4.0.7-7

Example:
rpm -Uvh test-0.1-1.i386.rpm
Preparing...                ###########################################
[100%]
   1:test                   warning: group test does not exist - using
root3%)
########################################### [100%]
warning: group test does not exist - using root

rpm -qp --scripts test-0.1-1.i386.rpm
preinstall scriptlet (using /bin/sh):
groupadd -r test >/dev/null 2>&1
postuninstall scriptlet (using /bin/sh):
groupdel test >/dev/null 2>&1

I'm posting this to the above mentioned bugs as well...

Thanks a lot,
 Oliver




More information about the fedora-extras-list mailing list