1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
On Friday 30 May 2003 17:18, Grant Goodyear wrote: |
5 |
> > In principle packages should never depend on any fixed user id. |
6 |
> > They should look at the passwd database for their uid. The only |
7 |
> > exception is root which has a predefined userid. |
8 |
> |
9 |
> I believe that Mr. Lesser is asking how one decides on uid/gid's |
10 |
> for new packages that should run as something other than root. |
11 |
> (For example, apache runs as apache.apache, which maps to uid=81 |
12 |
> and gid=81, and those numbers are defined in the /etc/passwd file |
13 |
> that's part of baselayout.) |
14 |
|
15 |
How about fixing the system? For example something like this: |
16 |
|
17 |
useradd foo |
18 |
FOO_UID=`awk -F: '$1 == "foo" {printf $3}' /etc/passwd` |
19 |
FOO_GID=`awk -F: '$1 == "foo" {printf $4}' /etc/passwd` |
20 |
|
21 |
I've just started at trying to make ebuilds but I suppose this could |
22 |
be put somewhere in an eclass. |
23 |
-----BEGIN PGP SIGNATURE----- |
24 |
Version: GnuPG v1.2.2 (GNU/Linux) |
25 |
|
26 |
iD8DBQE+15fLvCkUtBccqkoRAgTdAKCoxbX3qhh7ZuykpHocE1XqYPCazwCdFt7y |
27 |
iQP2BpHVxX7CDWxjKcPZDl4= |
28 |
=lRYI |
29 |
-----END PGP SIGNATURE----- |
30 |
|
31 |
|
32 |
-- |
33 |
gentoo-dev@g.o mailing list |