<div dir="auto"><div>Normally you should elevate to run e.g. `sudo upsdrvctl ...` so the NUT driver program initializes as `root` and drops privileges to `nut` (tweakable as the `user=...` in ups.conf, like your RUN_AS_USER in upsmon.conf) soon after that, and default permissions on packaged files expect that. Alternately you can run a driver's service as that user account right away, probably, but this is not common.</div><div dir="auto"><br></div><div dir="auto">Jim<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Jun 11, 2024, 01:35 Jack McGee <<a href="mailto:jack@greendesk.net">jack@greendesk.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://youtu.be/vyBP7wpN72c?si=SQFhJQ7bhUAUNCIW" rel="noreferrer noreferrer" target="_blank">https://youtu.be/vyBP7wpN72c?si=SQFhJQ7bhUAUNCIW</a><br>
<br>
I watched a youtube video to get this installed.<br>
<br>
I have standalone nut installation on Ubuntu 22.04. UPS is a <br>
CP1500PFCLCD. I have gotten as far as eliminating the no connection <br>
error that I was being broadcast. I have the web view viewable at <br>
<a href="http://192.168.1.105/cgi-bin/nut/upsstats.cgi" rel="noreferrer noreferrer" target="_blank">http://192.168.1.105/cgi-bin/nut/upsstats.cgi</a><br>
<br>
<br>
The problem I have I believe is permissions.<br>
<br>
mythuser@amethi:~$ upsdrvctl start<br>
Network UPS Tools - UPS driver controller 2.7.4<br>
Can't open /etc/nut/ups.conf: Can't open /etc/nut/ups.conf: Permission <br>
denied<br>
<br>
I ran<br>
<br>
chown root:nut upsmon.conf<br>
<br>
chmod 0640 /etc/nut/upsmon.conf<br>
<br>
mythuser@amethi:~$ sudo cat /etc/nut/upsd.users<br>
[monuser]<br>
password = XXXX<br>
admin master<br>
<br>
mythuser@amethi:~$ sudo cat /etc/nut/upsmon.conf<br>
RUN_AS_USER root<br>
MONITOR cyberpowerAmethi@localhost 1 admin secret master<br>
DEADTIME 25<br>
SHUTDOWNCMD "/sbin/shutdown -h +0"<br>
<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div></div></div>