On Sun, 7 Mar 2021, Jon Kinne via Nut-upsuser wrote:

OK, I have one user, "pi".  Here is the list of permissions:
Matching Defaults entries for pi on raspberry-pi:
    env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bi n,
    env_keep+=NO_AT_BRIDGE, env_keep+="http_proxy HTTP_PROXY",
    env_keep+="https_proxy HTTPS_PROXY", env_keep+="ftp_proxy FTP_PROXY",
    env_keep+=RSYNC_PROXY, env_keep+="no_proxy NO_PROXY"

User pi may run the following commands on raspberry-pi:
    (ALL : ALL) ALL
    (ALL) NOPASSWD: ALL

Given that, I don't see what you would have me do. I'm sure it all seems obvious to you, but if "pi" can do everything, why doesn't the command run?

Given that the consensus seems to be to use « su -c "/path/command" nut » or « su nut -c "/path/command" », and that I don't have a Raspberry Pi to play with, I suggest using su.

Roger
_______________________________________________
Nut-upsuser mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to