Re: [CentOS] Is there a rpm command to find the package that created a particular user or particular group?

2013-07-17 Thread Ian Forde
Just saw this. Here's how to do it via brute force. I have the user ovirtagent on one of my boxes, and wanted to find out who provided it. So I did the following: rpm --qf %{NAME}\n -qa | while read rname ; do if rpm -q --scripts ${rname} | grep -q ovirtagent ; then echo $rname ; fi ; done

Re: [CentOS] Is there a rpm command to find the package that created a particular user or particular group?

2013-07-17 Thread m . roth
Ian Forde wrote: Just saw this. Here's how to do it via brute force. I have the user ovirtagent on one of my boxes, and wanted to find out who provided it. So I did the following: snip Does ovirtagent own any files? If so, rpm -q --whatprovides /what/ever/ovirtagentfile will do the job.

[CentOS] Is there a rpm command to find the package that created a particular user or particular group?

2013-06-27 Thread Rob Townley
Given a particular user or particular group, is there a rpm command that returns what package created that particular user or particular group? Analogous to `rpm -q --whatprovides /etc/security/limits.conf` returns the package pam. Is there an rpm command that returns what package generated a

Re: [CentOS] Is there a rpm command to find the package that created a particular user or particular group?

2013-06-27 Thread Leon Fauster
Am 27.06.2013 um 20:36 schrieb Rob Townley rob.town...@gmail.com: Given a particular user or particular group, is there a rpm command that returns what package created that particular user or particular group? Analogous to `rpm -q --whatprovides /etc/security/limits.conf` returns the package

Re: [CentOS] Is there a rpm command to find the package that created a particular user or particular group?

2013-06-27 Thread Rob Townley
--scripts is helpful, the following returns a great deal of package scripts having to do with users and groups, but ideally would return just the package names involved in creating the user or group. rpm -qa --scripts | egrep 'user|group|id\s|getent|pass' rpm -qa --scripts | less does not seem