[gentoo-dev] Daemon users that need an actual home directory

2005-10-18 Thread Petteri Räty
I am trying to solve http://bugs.gentoo.org/show_bug.cgi?id=109079. 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.

Regards,
Petteri Räty (Betelgeuse)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] Daemon users that need an actual home directory

2005-10-18 Thread Roy Marples
On Tue, 2005-10-18 at 22:58 +0300, Petteri Räty wrote:
 I am trying to solve http://bugs.gentoo.org/show_bug.cgi?id=109079. 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=$( 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


-- 
gentoo-dev@gentoo.org mailing list



Re: [gentoo-dev] Daemon users that need an actual home directory

2005-10-18 Thread Andrej Kacian
On Tue, 18 Oct 2005 22:58:51 +0300
Petteri Räty [EMAIL PROTECTED] wrote:

 I am trying to solve http://bugs.gentoo.org/show_bug.cgi?id=109079. 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.

I recently had a /dev/null homedir problem for media-sound/mpd{,-svn}
package[1]. Clearly, user mpd needs a non-null homedir. As for other daemon
users, I guess it should be handled on a per-user basis - some daemon users
most likely don't need the homedir, but need to have something specified
in /etc/passwd, thus /dev/null.

1. https://bugs.gentoo.org/show_bug.cgi?id=101662

Kind regards,
-- 
Andrej Ticho Kacian ticho at gentoo dot org
Gentoo Linux Developer - net-mail, antivirus, sound, x86


pgp1wQsYuKzQ4.pgp
Description: PGP signature