[Nut-upsuser] Permissions error

Jack McGee jack at greendesk.net
Tue Jun 11 00:22:42 BST 2024


https://youtu.be/vyBP7wpN72c?si=SQFhJQ7bhUAUNCIW

I watched a youtube video to get this installed.

I have standalone nut installation on Ubuntu 22.04.  UPS is a 
CP1500PFCLCD.  I have gotten as far as eliminating the no connection 
error that I was being broadcast.  I have the web view viewable at 
http://192.168.1.105/cgi-bin/nut/upsstats.cgi


The problem I have I believe is permissions.

mythuser at amethi:~$ upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.4
Can't open /etc/nut/ups.conf: Can't open /etc/nut/ups.conf: Permission 
denied

I ran

chown root:nut upsmon.conf

chmod 0640 /etc/nut/upsmon.conf

mythuser at amethi:~$ sudo cat /etc/nut/upsd.users
[monuser]
   password = XXXX
   admin master

mythuser at amethi:~$ sudo cat /etc/nut/upsmon.conf
RUN_AS_USER root
MONITOR cyberpowerAmethi at localhost 1 admin secret master
  DEADTIME 25
SHUTDOWNCMD "/sbin/shutdown -h +0"




More information about the Nut-upsuser mailing list