[Nut-upsuser] nut vs ups fail

Charles Lepple clepple at gmail.com
Sun May 12 20:10:13 BST 2019


On May 12, 2019, at 2:51 PM, Gene Heskett wrote:
> 
> On Sunday 12 May 2019 02:41:02 pm Charles Lepple wrote:
> 
>> /lib/nut/usbhid-ups -a myups -DD
> gene at coyote:~$ /lib/nut/usbhid-ups -a myups -DD
> Network UPS Tools - Generic HID driver 0.41 (2.7.4)
> USB communication driver 0.33
> Can't open /etc/nut/ups.conf: Can't open /etc/nut/ups.conf: Permission 
> denied
> lemme see who owns that. huh? amandabackup:nut what the h?  Who is 
> supposed to own it and what perms? chown -R nut:nut nut didn't help

Needs to be readable by user/group nut, so setting the group as you did, plus "chmod g+r":

$ ls -l /etc/nut/ups.conf
-rw-r----- 1 root nut 5058 Oct 29  2018 /etc/nut/ups.conf

... although ups.conf for a USB-connected UPS likely doesn't contain anything sensitive, so mode 0644 would also be fine.


More information about the Nut-upsuser mailing list