1 |
On Friday 30 May 2003 16:03, Martin Lesser wrote: |
2 |
> While writing an ebuild for nullmailer I would like to know how to |
3 |
> determine an unique uid/gid (nullmail/nullmail) which I need in the |
4 |
> script if I don't want to patch the Makefile. |
5 |
> |
6 |
> Grepping through other ebuild's I saw that there are several packages |
7 |
> which also use useradd/groupadd with a given id (i.e. postgres=70). |
8 |
> |
9 |
> Who assigns these ids used in several other ebuild's where system users |
10 |
> are needed? How can I prevent id collisions without grepping through |
11 |
> other ebuild-files? |
12 |
> |
13 |
> Or should I omit defining sys-users with a fixed id given? |
14 |
|
15 |
In principle packages should never depend on any fixed user id. They should |
16 |
look at the passwd database for their uid. The only exception is root which |
17 |
has a predefined userid. |
18 |
|
19 |
Paul |
20 |
|
21 |
-- |
22 |
Paul de Vrieze |
23 |
Researcher |
24 |
Mail: pauldv@××××××.nl |
25 |
Homepage: http://www.devrieze.net |