Gentoo Archives: gentoo-dev

From: George Shapovalov <georges@×××××××××××.edu>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Adding users/groups in packages
Date: Fri, 19 Apr 2002 20:23:13
Message-Id: 200204191823.15230.georges@its.caltech.edu
In Reply to: [gentoo-dev] Adding users/groups in packages by Joachim Blaabjerg
1 Ok, since there seems to be no answer I'll try (disclaimer: I am not sure of
2 the gentoo security group policy on usernames used).
3
4 There is no special infrastructure in the portage aimed at adding/removing new
5 users. However full power of bash is available to you.
6 You can do it in such a way for example:
7 1. Check for existance of an appropriate user (grep -e username /etc/passwd)
8 2. run appropriate adduser command
9 3. after make install finishes you probably want to:
10 cd &{D}
11 chown -R username.group *
12 chmod -R ??? * (or what seems appropriate)
13 4. BE EXTREMELY CAREFUL AND TRIPLE CHECK EVERYTHING!
14 as you are doing potentially dangerous things in you ebuild. Good idea is to
15 solicit some testing on the side..
16
17 Whether it should be done in ebuild in this specific case? I am afraid that
18 you are the best person to know (for example if you want to force some
19 specific username different from what package installer wants to do), unless
20 this is part of development for larger [sub]system. In the latter case try
21 contacting developers involved in that [sub]project, they should have some
22 idea about accepted usernames.
23
24 George
25
26
27 On Friday 19 April 2002 15:33, Joachim Blaabjerg wrote:
28 > Hi,
29 >
30 > While packaging tcb for secure Gentoo, I noticed it needed a group named
31 > chkpwd. How should I handle this in the ebuild? I assume tcb is going to be
32 > standard in secure Gentoo, so should this be handled in the ebuild at all?
33 >
34 > Regards,