permissions issue with nut init script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nut (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
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-
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.
Hi-
Is this perhaps a duplicate of Bug #222761?
:-Dustin