[aur-general] New users and groups

Andrea Scarpino bash.lnx at gmail.com
Fri Oct 3 03:55:44 EDT 2008


2008/10/3 Lukáš Jirkovský <l.jirkovsky at gmail.com>:
> Hi,
> I've to introduce some new users in my ossec packages. My question is:
> may I use specific uid's and gids in PKGBUILD or I've to use adduser
> and groupadd etc. in install?
> The problem is that if I use adduser, groupadd and chown in install
> script pacman complains everytime when I run update of this package.
> And it's of course very messy way of doing it so. On the other hand,
> there can be conflicts with existing users and groups. What should I
> do?
Look hal.install [1], I think you can use the same method:

getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g 93 YOUR_GROUP


- [1] http://repos.archlinux.org/viewvc.cgi/extra/system/hal/hal.install?revision=1.3&root=extra&view=markup

-- 
Andrea `BaSh` Scarpino
Arch Linux Trusted User
Linux User: #430842


More information about the aur-general mailing list