Find pkg added users/groups

Nikolai Lifanov lifanov at mail.lifanov.com
Fri Dec 2 14:47:35 UTC 2016



On 12/2/16 7:00 AM, freebsd-pkg-request at freebsd.org wrote:

>
> pkg info -l lets me see what files a package adds. Is there any easy way
> to see what users and groups (if any) a package adds?
>

pkg shell to the rescue:

$ echo "
SELECT DISTINCT users.name
FROM packages,pkg_users,users
WHERE packages.id=package_id
AND users.id=user_id
AND packages.name='virtualbox-ose';
" \
  | pkg shell
vboxusers

You can do the same thing for groups.

- Nikolai Lifanov


More information about the freebsd-pkg mailing list