Hi, Thanks for responding. I am now unable to reproduce this bug.
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 am in the process of migrating my machines from openSUSE to Debian, and the
data for my NUT configurations comes from a previous openSUSE box. The
ownerships and permissions on the openSUSE box are
drwxr-xr-x 2 root root 4096 Jan 3 19:03 ./
drwxr-xr-x 140 root root 12288 Mar 1 14:42 ../
-rw-r--r-- 1 root root 1371 Dec 2 2013 nut.conf
-rw-r--r-- 1 root root 290 Jul 14 2017 ups.conf
-rw------- 1 upsd root 290 Jun 20 2017 upsd.conf
-rw------- 1 upsd root 91 Aug 3 2017 upsd.users
-rw------- 1 upsd root 1611 Jan 3 19:03 upsmon.conf
-rw-r--r-- 1 root root 1348 Jul 1 2017 upssched.conf
so it does look as if the permissions were carried over from openSUSE. I have
checked with a fresh Debian stretch install on a newly formatted partition that
the permissions are indeed those specified by
for file in ups.conf upsd.conf upsd.users ; do
if [ -f /etc/nut/$file ] ; then
chown root:nut /etc/nut/$file
chmod 640 /etc/nut/$file
fi
done
I'm tempted to close this bug as this is a local misconfiguration IMHO.
I agree. Could you close 884021? Thanks, Roger