Re: how to forbid debhelper to modify /home ?
On Fri, Sep 03, 2021 at 08:03:23AM -0400, Greg Wooledge wrote:
> On Fri, Sep 03, 2021 at 07:57:44AM -0400, Roberto C. Sánchez wrote:
> > On Fri, Sep 03, 2021 at 11:14:45AM +0200, Harald Dunkel wrote:
> > > Hi folks,
> > >
> > > how can I tell the debhelper scripts to not install home directories
> > > for system services in /home (managed on a remote host in my environment),
> > > but to use /var/lib instead?
> > >
> > That sounds like potentially buggy behavior. Can you give a specific
> > example?
>
> Out of curiosity, I checked my system to see if there were any system
> users with home directories under /home. The only one I found is "ntp".
>
> Then I looked at the ntp.postinst script, and it has this:
>
> adduser --system --quiet --ingroup ntp --no-create-home --home /nonexistent ntp
>
> So presumably my ntp user with /home/ntp as its home directory is from
> an older Debian release, and if it had been created under bullseye, it
> would look different.
>
> Granted, I have only my specific subset of Debian packages installed,
> and there could be others that still make system user home directories
> in /home. We'll have to await further details from the OP.
>
As another datum point, this is a fairly newly installed Debian 11 system,
the only user in /home is the single human user on this system. This is a
full GNOME desktop so has services running. I'd anticipate that everything
service related would now be under /etc or /etc/default/
All best, as ever,
Andy Cater
Reply to: