[Bug 223932] [NEW] permissions issue with nut init script

Al Grimstad al at grimstad.mv.com
Mon Apr 28 22:48:30 BST 2008


Public bug reported:

Binary package hint: nut

I choose to run the nut daemons as the user "nut". For reasons I don't
understand, the ubuntu 8.04 version of nut (2.2.1-2.1ubuntu7) isn't
happy with the ownership-permissions of /var/run/nut (770 root.nut) and
fails, i.e., upsdrvctl fails because it can't change to this directory.

I've found two work-arounds. One is to run the nut daemons as root. I
don't want to do this.

The second work-around is to change the ownership of /var/run/nut to
nut.nut. Again for reasons I don't fully understand, but suppose to be
related to the dynamic creation of /var/run at boot, this change doesn't
survive a re-boot.

The way I fixed this problem is to hack /etc/init.d/nut changing this
line:

                && chown root:nut ${pid_dir} \
to
                && chown nut:nut ${pid_dir} \

A better hack would keep this consistent with values in
/etc/default/nut.

Fundamentally, though, I suspect this is some kind of build error. I run
nut on debian etch systems and haven't seen this problem.

** Affects: nut (Ubuntu)
     Importance: Undecided
         Status: New

-- 
permissions issue with nut init script
https://bugs.launchpad.net/bugs/223932
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in ubuntu.



More information about the Ubuntu-server-bugs mailing list