Roger Price
2017-Dec-10 11:10 UTC
[Nut-upsuser] Debian 9 : Can't open /etc/nut/upsd.users: Permission denied
I installed nut 2.7.4-5 on a fresh Debian 9.2.1 system. I updated the configuration files, started nut in standalone mode, and got the error message Can't open /etc/nut/upsd.users: Permission denied This is because the file has ownership and permissions -rw------- 1 root nut 91 Aug 3 11:44 upsd.users I changed the ownership and permissions in /etc/nut/ to drwxr-xr-x 2 root nut 4096 Dec 7 18:32 ./ drwxr-xr-x 140 root root 12288 Dec 9 12:39 ../ -rw-r----- 1 root nut 1411 Dec 7 18:32 nut.conf -rw-r----- 1 nut nut 290 Jul 14 20:16 ups.conf -rw------- 1 nut nut 290 Jun 20 14:39 upsd.conf -rw------- 1 nut nut 91 Aug 3 11:44 upsd.users -rw------- 1 nut nut 1623 Jul 1 15:41 upsmon.conf -rw-r----- 1 nut nut 1348 Jul 1 09:39 upssched.conf and the error message disappeared. The nut:nut ownership seems to me to be more natural, and the root:nut ownership looks like a bug in the Debian package. Roger
Charles Lepple
2017-Dec-10 13:22 UTC
[Nut-upsuser] Debian 9 : Can't open /etc/nut/upsd.users: Permission denied
On Dec 10, 2017, at 6:10 AM, Roger Price <roger at rogerprice.org> wrote:> > The nut:nut ownership seems to me to be more natural, and the root:nut ownership looks like a bug in the Debian package.I would argue it slightly differently: upsd has no need to write to upsd.users (or change permissions on that file), so root:nut makes sense to me, but with group-read permissions enabled. Either way, the default permissions are under the packager's control, so I would recommend that you file a bug with Debian: https://www.debian.org/Bugs/Reporting (feel free to mention the bug number here)
Roger Price
2017-Dec-10 15:55 UTC
[Nut-upsuser] Debian 9 : Can't open /etc/nut/upsd.users: Permission denied
On Sun, 10 Dec 2017, Charles Lepple wrote:> Either way, the default permissions are under the packager's control, so > I would recommend that you file a bug with Debian: > https://www.debian.org/Bugs/Reporting (feel free to mention the bug > number here)Debian Bug Tracker told me that the URL is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884021. Roger
Maybe Matching Threads
- Debian 9 : Can't open /etc/nut/upsd.users: Permission denied
- Debian 9 : Can't open /etc/nut/upsd.users: Permission denied
- Debian 9 : Can't open /etc/nut/upsd.users: Permission denied
- Debian 9 : Can't open /etc/nut/upsd.users: Permission denied
- Invalid directive CERTFILE /etc/nut/keys/gold.pem on Debian stretch