public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Homedir guidelines (was: acct-user/amavis: new user (UID 333))
@ 2019-08-16  0:49 Michael Orlitzky
  0 siblings, 0 replies; only message in thread
From: Michael Orlitzky @ 2019-08-16  0:49 UTC (permalink / raw
  To: gentoo-dev

> On 8/3/19 7:49 PM, Michael Orlitzky wrote:
>>
>> That makes me think that we should set
>>
>>   ACCT_USER_HOME=/var/lib/amavis
> 
> We'll do this during the next version/revision bump, keeping everything
> else the same.
> 

The recent homedir problems changed my thoughts on this. The
mail-filter/amavisd-new package depends on acct-user/amavis because it
needs the user to exist when we call e.g. fowners. But, within the
amavisd-new ebuild, we have no way to depend on the value of
ACCT_USER_HOME inside the acct-user ebuild. If amavisd-new needs
/var/lib/amavis to exist and be owned by "amavis" at runtime because a
configuration file points there, then the amavisd-new ebuild should take
care of that, and not rely on it happening transitively.

This is especially true for users shared by more than one package. It
also makes the guidelines easier: if your user doesn't log in, leave
ACCT_USER_HOME unset. I have a feeling that would be cleaner in almost
all cases, and it would be easy to put into repoman as a warning so that
we don't have to manually check it a thousand times.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-16  0:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-16  0:49 [gentoo-dev] Homedir guidelines (was: acct-user/amavis: new user (UID 333)) Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox