[SRU] upsd doesn't start NOT 221737
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nut (Ubuntu) |
Fix Released
|
Medium
|
Steve Langasek | ||
Hardy |
Fix Released
|
Medium
|
Steve Langasek | ||
Jaunty |
Fix Released
|
Medium
|
Steve Langasek |
Bug Description
Binary package hint: nut
First off /etc/default/nut is fine.
After boot upsd is not started:
wayne@server:~$ ps -A |grep ups
5077 ? 00:00:00 cupsd
5467 ? 00:00:00 upsmon
5468 ? 00:00:00 upsmon
I believe this is why:
wayne@server:~$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.2.1-
Network UPS Tools - CyberPower text protocol UPS driver .05 (2.2.1-)
Warning: This is an experimental driver.
Some features may not function correctly.
Can't chdir to /var/run/nut: Permission denied
Driver failed to start (exit status=1)
Permissions for /var/run/nut:
wayne@server:~$ ls -l /var/run
drwxrwx--- 2 root nut 60 2008-04-26 16:47 nut
I "chown"'ed to nut and all was well but the owner was reset on reboot.
The permanent solution I found was to add the nut user to the nut group.
Apparently the package install script does not do that. It probably could/should
be the default behavior.
Similar/same problem can be found here: http://
Info:
nut package version: 2.2.1-2.1ubuntu7
$ lsb_release -ra
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04
Release: 8.04
Codename: hardy
nut 2.2.1-2.1ubuntu7 (source) in ubuntu hardy
Changed in nut: | |
importance: | Undecided → Medium |
milestone: | none → ubuntu-8.04.1 |
Changed in nut: | |
milestone: | ubuntu-8.04.1 → none |
importance: | Undecided → Medium |
milestone: | none → ubuntu-8.04.1 |
status: | New → Triaged |
Changed in nut: | |
milestone: | none → ubuntu-8.04.1 |
Changed in nut: | |
milestone: | ubuntu-8.04.2 → ubuntu-8.04.3 |
Changed in nut: | |
assignee: | nobody → vorlon |
Changed in nut: | |
milestone: | none → ubuntu-8.04.3 |
2008/4/26, Wayne Steenburg <email address hidden>:
> Public bug reported:
> ...
> Can't chdir to /var/run/nut: Permission denied
good catch.
Chuck: this (--ingroup nut) is part of the default debian settings...
has this been changed in Ubuntu (ex: to the benefit of dialout)?
-- Arnaud