Gentoo Archives: gentoo-dev

From: Roy Marples <uberlord@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Daemon users that need an actual home directory
Date: Tue, 18 Oct 2005 20:56:58
Message-Id: 1129668774.10342.4.camel@uberpc.ubernet
In Reply to: [gentoo-dev] Daemon users that need an actual home directory by "Petteri Räty"
1 On Tue, 2005-10-18 at 22:58 +0300, Petteri Räty wrote:
2 > I am trying to solve http://bugs.gentoo.org/show_bug.cgi?id=109079. I
3 > asked on #gentoo-dev and ciaramn said that we do not have a policy on
4 > where to make a home directory. So I would now like the input of other
5 > developers on howto solve this bug.
6
7 Assuming that the tomcat user is in /etc/passwd (or available via
8 getent) then you can use this if you inherit eutils.
9
10 local homedir=$( egethome tomcat )
11
12 Now you have the homedir and if it's /dev/null you can either warn about
13 it in the ebuild or abort.
14
15 As to where to make homedirs - well, you can't go wrong with /var/lib -
16 postgres, openldap and others have their "homes" there (where they store
17 data).
18
19 AFAIK ciaramn is right and we don't have a set policy. But then I don't
20 think we can have a fixed policy as there would be many exceptions.
21
22 Roy
23
24
25 --
26 gentoo-dev@g.o mailing list