[Pkg-puppet-devel] Bug#609896: Bug#609896: puppet-common: home directory `/var/lib/puppet' permissions issue

Russ Allbery rra at debian.org
Thu Jan 13 22:53:09 UTC 2011


Dan Gherman <thereallove at gmail.com> writes:

> On a new installation (not a package upgrade) of the puppet-common
> package from the squeeze repositories, this error is displayed:

> Setting up puppet-common (2.6.2-4) ...
> adduser: Warning: The home directory `/var/lib/puppet' does not belong to
> the user you are currently creating.

I don't think that's actually a problem, is it?  In other words, shouldn't
we just suppress the warning and preserve the current behavior?  I don't
see any obvious reason why /var/lib/puppet needs to be owned by the puppet
user.

> This is because the 'puppet' user is created on the system in the postinst
> script, thus the /var/lib/puppet directory is already copied by the
> installer with root:root permissions:
> $ ls -al /var/lib/ | grep puppet
> drwxr-xr-x  4 root    root    4096 2011-01-13 12:02 puppet

> A fix is to create a preinst script where the 'puppet' user and its home
> (/var/lib/puppet) is created with the right permissions prior installing
> the files from the package.

Much better to just chown the directory in the postinst after the account
has been created if that's necessary.  But I don't think it is.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>





More information about the Pkg-puppet-devel mailing list