From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1ERyW1-0007Gi-O2 for garchives@archives.gentoo.org; Tue, 18 Oct 2005 20:56:58 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9IKrS0M005955; Tue, 18 Oct 2005 20:53:28 GMT Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9IKoeq8019770 for ; Tue, 18 Oct 2005 20:50:40 GMT Received: from rsm.demon.co.uk ([80.177.111.50]) by anchor-post-35.mail.demon.net with esmtp (Exim 4.42) id 1ERyMH-0000OJ-JD for gentoo-dev@lists.gentoo.org; Tue, 18 Oct 2005 20:46:54 +0000 Received: from uberpc.ubernet (uberpc.ubernet [10.73.5.30]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by rsm.demon.co.uk (Postfix) with ESMTP id 977833C0A0D for ; Tue, 18 Oct 2005 21:52:54 +0100 (BST) Subject: Re: [gentoo-dev] Daemon users that need an actual home directory From: Roy Marples To: gentoo-dev@lists.gentoo.org In-Reply-To: <435553FB.6080604@gentoo.org> References: <435553FB.6080604@gentoo.org> Content-Type: text/plain; charset=utf8 Date: Tue, 18 Oct 2005 21:52:54 +0100 Message-Id: <1129668774.10342.4.camel@uberpc.ubernet> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j9IKoeq8019770 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id j9IKrS1w005955 X-Archives-Salt: 00475771-b70c-4ccb-b0a1-c98498cd3f88 X-Archives-Hash: 9ca0d6784316d4229a8f9862677dbd18 On Tue, 2005-10-18 at 22:58 +0300, Petteri R=C3=A4ty wrote: > I am trying to solve http://bugs.gentoo.org/show_bug.cgi?id=3D109079. I > asked on #gentoo-dev and ciaramn said that we do not have a policy on > where to make a home directory. So I would now like the input of other > developers on howto solve this bug. Assuming that the tomcat user is in /etc/passwd (or available via getent) then you can use this if you inherit eutils. local homedir=3D$( egethome tomcat ) Now you have the homedir and if it's /dev/null you can either warn about it in the ebuild or abort. As to where to make homedirs - well, you can't go wrong with /var/lib - postgres, openldap and others have their "homes" there (where they store data). AFAIK ciaramn is right and we don't have a set policy. But then I don't think we can have a fixed policy as there would be many exceptions. Roy --=20 gentoo-dev@gentoo.org mailing list