[Nut-upsdev] upsmon issue: user monuser not found

Kjell Claesson kjell.claesson at epost.tidanet.se
Fri Jul 11 21:03:48 UTC 2008


Hi David,
Den Friday 11 July 2008 21.53.45 skrev David Mathog:

>
>   ./configure --with-usb --with-user=nut --with-group-nut
As you configured it to run as user nut, and group nut

> upsmon.conf:
> RUN_AS_USER monuser

This line in the upsmon.conf should be
RUN_AS_USER nut

If you look at this ps xau (sorry for the line break)
nut      23928  0.0  0.0  14340   580 ?        Ss   22:57 
0:00 /lib/nut/bcmxcp_usb -a pw3105
nut      23949  0.0  0.0  33564   836 ?        Ss   22:58   
0:00 /usr/sbin/upsd
root     23966  0.0  0.1  35624  1056 ?        Ss   22:58   
0:00 /usr/sbin/upsmon
nut      23967  0.0  0.0  35624  1024 ?        S    22:58   
0:00 /usr/sbin/upsmon

You see that upsmon run as root and nut.
The upsmon 'login' to the upsd with the info in from your config.

upsd.users:
[monuser]
        password  = sfdiw3vc
        allowfrom = localhost
        upsmon master

upsmon.conf
MONITOR apcups at localhost 1 monuser sfdiw3vc master

So it should run as nut but logon to upsd with monuser.

It also run as root to make it possible to send a shutdown to the system.

Regards
Kjell



More information about the Nut-upsdev mailing list