[CentOS] rpm user and groups

Tue May 22 10:20:56 UTC 2012
John Doe <jdmls at yahoo.com>

From: Markus Falb <markus.falb at fasel.at>

>For example, mysql-server is adding mysql user with uid 27
>Is this something I can ask the rpm db?

rpm -qa | sort | while read PKG; do echo $PKG; rpm -q --scripts $PKG | grep -- "-u 27"; done

JD