[LUNI] How to find what rpm created a user?
Tony Schlemmer
aschlemm at comcast.net
Fri Mar 25 10:49:29 CST 2005
On Thursday 24 March 2005 14:31, jvalkiunas at flywheelcorporation.com wrote:
> Some rpms create users with no home directories. How could you find out
> which rpm created which user?
>
> ie: /etc/passwd ->
> nscd
> vsca
> ident
>
> The names imply what rpm they're from, but I was wondering if there was a
> slicker way of using rpm to find out.
>
> Ideally a rpm -qf /home/userdirectory would work, but these users don't
> have home directories.
>
>
> Thanks,
>
> -Jonas
Well nscd it probably related to the name service cache daemon so see if there
is an nscd RPM installed on your system., etc. The creation of these users
might be done with either a %pre or %post scriptlet within some RPM which
makes it more difficult to find.
You can get the "rpm" command to list out the various scriptlets an RPM has
embedded in by running:
rpm -q --scripts <package-name>
For an RPM file use:
rpm -qp --scripts <some-rpm-file>.rpm
I suppose you could even query all packages and get them to dump out their
scriptlets but I 'm not sure you'll be able to tell which script goes with
what RPM.
If you want to try use this command:
rpm -qa --scripts
Another thought is that they are simply part of a default /etc/passwd file
that is part of the base install.
Tony
--
Anthony Schlemmer
aschlemm at comcast.net
More information about the luni
mailing list