[aur-general] New users and groups
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? Regards Lukas 'stativ' Jirkovsky
2008/10/3 Lukáš Jirkovský <l.jirkovsky@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
2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g 93 YOUR_GROUP
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g YOUR_GROUP_ID YOUR_GROUP fixed, sorry -- Andrea `BaSh` Scarpino Arch Linux Trusted User Linux User: #430842
Thanks, I've changed my install according to your suggestion. I hope uid's 524, 525, 526 and gid 525 doesn't conflict with anything. 2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g 93 YOUR_GROUP
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g YOUR_GROUP_ID YOUR_GROUP
fixed, sorry
-- Andrea `BaSh` Scarpino Arch Linux Trusted User Linux User: #430842
I have a question about the uid and gid. Are there any reserved uids and gids for system use? In other distribution such as Ubuntu, the user's uid and gid begins from 1000. But in Arch, it seems begin from 100. Is that mean that the uids and gids below 100 are reserved for system use? On Fri, Oct 3, 2008 at 4:50 PM, Lukáš Jirkovský <l.jirkovsky@gmail.com> wrote:
Thanks, I've changed my install according to your suggestion. I hope uid's 524, 525, 526 and gid 525 doesn't conflict with anything.
2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g 93 YOUR_GROUP
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g YOUR_GROUP_ID YOUR_GROUP
fixed, sorry
-- Andrea `BaSh` Scarpino Arch Linux Trusted User Linux User: #430842
Yes, but the problem is that below 100 is not much uids/gids so it's possible that some day in future there will be some official group/user with the same id as you have used in your package. 2008/10/3 Lee MaRS <leemars@gmail.com>:
I have a question about the uid and gid. Are there any reserved uids and gids for system use? In other distribution such as Ubuntu, the user's uid and gid begins from 1000. But in Arch, it seems begin from 100. Is that mean that the uids and gids below 100 are reserved for system use?
On Fri, Oct 3, 2008 at 4:50 PM, Lukáš Jirkovský <l.jirkovsky@gmail.com> wrote:
Thanks, I've changed my install according to your suggestion. I hope uid's 524, 525, 526 and gid 525 doesn't conflict with anything.
2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g 93 YOUR_GROUP
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g YOUR_GROUP_ID YOUR_GROUP
fixed, sorry
-- Andrea `BaSh` Scarpino Arch Linux Trusted User Linux User: #430842
So I think the best solution to this problem, is to reserved uids and gids below 1000 for system use. I filled a bug report to hope that policy-kit can use uid and gid below 100 instead of 102. However, nobody notices it.. On Fri, Oct 3, 2008 at 7:45 PM, Lukáš Jirkovský <l.jirkovsky@gmail.com> wrote:
Yes, but the problem is that below 100 is not much uids/gids so it's possible that some day in future there will be some official group/user with the same id as you have used in your package.
2008/10/3 Lee MaRS <leemars@gmail.com>:
I have a question about the uid and gid. Are there any reserved uids and gids for system use? In other distribution such as Ubuntu, the user's uid and gid begins from 1000. But in Arch, it seems begin from 100. Is that mean that the uids and gids below 100 are reserved for system use?
On Fri, Oct 3, 2008 at 4:50 PM, Lukáš Jirkovský <l.jirkovsky@gmail.com> wrote:
Thanks, I've changed my install according to your suggestion. I hope uid's 524, 525, 526 and gid 525 doesn't conflict with anything.
2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
2008/10/3 Andrea Scarpino <bash.lnx@gmail.com>:
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g 93 YOUR_GROUP
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g YOUR_GROUP_ID YOUR_GROUP
fixed, sorry
-- Andrea `BaSh` Scarpino Arch Linux Trusted User Linux User: #430842
2008/10/3 Lukáš Jirkovský <l.jirkovsky@gmail.com>:
Thanks, I've changed my install according to your suggestion. I hope uid's 524, 525, 526 and gid 525 doesn't conflict with anything.
The correct procedure is: 1) check http://wiki.archlinux.org/index.php/UID_and_GID_list 2) request devs to add your UIDs/GIDs to the db 3) update packages (#2 should better be before #3 in case there are objections/notices) -- Roman Kyrylych (Роман Кирилич)
2008/10/3 Lee MaRS <leemars@gmail.com>:
I have a question about the uid and gid. Are there any reserved uids and gids for system use? In other distribution such as Ubuntu, the user's uid and gid begins from 1000. But in Arch, it seems begin from 100. Is that mean that the uids and gids below 100 are reserved for system use?
yes. the problem is that user-created groups start after GID 100 in Arch, which already caused some problems, but it's already bugreported. -- Roman Kyrylych (Роман Кирилич)
2008/10/5 Roman Kyrylych <roman.kyrylych@gmail.com>:
2008/10/3 Lee MaRS <leemars@gmail.com>:
I have a question about the uid and gid. Are there any reserved uids and gids for system use? In other distribution such as Ubuntu, the user's uid and gid begins from 1000. But in Arch, it seems begin from 100. Is that mean that the uids and gids below 100 are reserved for system use?
yes.
the problem is that user-created groups start after GID 100 in Arch, which already caused some problems, but it's already bugreported.
-- Roman Kyrylych (Роман Кирилич)
I'm not sure that the devs would do that, because it's needed for only one package (actually it's three packages, but only one can be installed), which is in addition not widely used.
participants (4)
-
Andrea Scarpino
-
Lee MaRS
-
Lukáš Jirkovský
-
Roman Kyrylych