On 8/3/19 2:43 PM, Ralph Seichter wrote: > + > +EAPI=7 > + > +inherit acct-user > + > +ACCT_USER_ID=333 > +ACCT_USER_GROUPS=( amavis ) > +DESCRIPTION="User for mail-filter/amavisd-new" > + > +acct-user_add_deps
The existing user created by the amavisd-new ebuilds has a home directory of /var/amavis. This was done to match the default value of $MYHOME in the upstream config file, but is wrong: the FHS says that applications should not create top-level directories in /var for their own use. The right place for amavis' data is under /var/lib/amavis. And now is certainly the time to make that change if we're ever going to make it. If we were to do so a month ago, we would have set the user's home directory to /dev/null and used keepdir on /var/lib/amavis, because otherwise the "home" directory itself would be left untracked by the package manager. However, the acct-user eclass is smart enough to keepdir the new home directory for us. That makes me think that we should set ACCT_USER_HOME=/var/lib/amavis to avoid the extra step. Does anyone see a downside to that, versus leaving the homedir at /dev/null and creating the "extra" directory under /var/lib?
