[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#684732: unblock: nut/2.6.4-2



Hi again guys,

2012/11/11 Laurent Bigonville <bigon@debian.org>
Le Sun, 11 Nov 2012 19:07:46 +0100,
Julien Cristau <jcristau@debian.org> a écrit :

> On Sat, Sep 29, 2012 at 21:12:09 +0200, Laurent Bigonville wrote:
>
> > Le Sat, 29 Sep 2012 20:56:11 +0200,
> > Julien Cristau <jcristau@debian.org> a écrit :
> >
> > >
> > > why is the last bit needed?
> > >
>
> I didn't get a reply to the above (why you need adduser nut nut).

See #493159

This is to fix a situation were the user nut was not created without
being added to the group. Is that correct Arnaud?

indeed, we have some corner cases due to the modular and distributed nature of NUT:
you may install the CGI alone, to monitor remote installation, then install nut (server | client ...) in the meantime, uninstall either ones, and still requires the user and group to be there.
 
>
> > > +    if [ -d /var/run/nut ] ; then
> > > +        chown root:nut /var/run/nut
> > > +        chmod 770 /var/run/nut
> > > +    fi
> > >
> > > why does the nut user need write access there?  And why is this
> > > created in postinst instead of an init script?
> >
> > nut should be able to create sockets in that directory.
> >
> > This is probably a bit redundant as this is also done in the
> > initscript.
> >
> Then I'd prefer to not have it in postinst.

Well this was a copy/paste of the nut-server postinstall script, so
this should also be removed from that file too. Do you want me to do
that for wheezy?

right, that's part of the legacy (dead) code, prior to the volatile /var move.
good to remove, since it's addressed in the sysV initscript.
the question will probably pop-up again with systemd though!
 
The maintainer scripts should probably reworked a bit,
but that will be for later I guess.

yup, I'm still head underwater, concentrating on upstream lead :(
and the backlog for debs is still huge, though Laurent's help has made a big difference in the past couple of years...

cheers,
Arnaud
--
Linux / Unix / Opensource Engineering Expert - Eaton - http://opensource.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr


Reply to: