Re: [Nut-upsuser] Permissions error

2024-06-12 Thread Jim Klimov via Nut-upsuser
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.

Re: [Nut-upsuser] Permissions error

2024-06-11 Thread Greg Troxel via Nut-upsuser
Jack McGee writes: >> mythuser@amethi:~$ upsdrvctl start >> Network UPS Tools - UPS driver controller 2.7.4 >> Network UPS Tools - Generic HID driver 0.41 (2.7.4) >> USB communication driver 0.33 >> kill: Operation not permitted >> writepid: fopen /run/nut/usbhid-ups-cyberpowerAmethi.pid:

Re: [Nut-upsuser] Permissions error

2024-06-11 Thread Jack McGee
On 6/11/24 18:20, Jack McGee wrote: I added the user that normally logons onto that machine to the nut group.  Different error now: mythuser@amethi:~$ upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - Generic HID driver 0.41 (2.7.4) USB communication

Re: [Nut-upsuser] Permissions error

2024-06-11 Thread Jack McGee
On 6/10/24 19:46, Charles Lepple wrote: On Jun 10, 2024, at 7:22 PM, Jack McGee wrote: mythuser@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 If you are sure the driver is not running

Re: [Nut-upsuser] Permissions error

2024-06-10 Thread Jack McGee
On 6/10/24 19:46, Charles Lepple wrote: On Jun 10, 2024, at 7:22 PM, Jack McGee wrote: mythuser@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 If you are sure the driver is not running

Re: [Nut-upsuser] Permissions error

2024-06-10 Thread Charles Lepple via Nut-upsuser
On Jun 10, 2024, at 7:22 PM, Jack McGee wrote: > > mythuser@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 If you are sure the driver is not running (unclear from "eliminating the no

Re: [Nut-upsuser] Permissions error

2024-06-10 Thread Greg Troxel via Nut-upsuser
you need to understand what uid/gid you wish to run nut under, and arrange that this uid/gid can open the devices, read the configs, and write the state places. you left out running 'id' before upsdrvctl start to see what the uid/gid is. (followups onlist only please)

[Nut-upsuser] Permissions error

2024-06-10 Thread Jack McGee
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