I got a eaton 5110 1000watt for xmas I ended up installing nut
http://www.networkupstools.org/ to monitor it
nut has a few components to it
nut-client
nut-cgi
nut-monitor
etc etc
Its been installed in /etc/ups with the following permissions
-rw-r--r-- 1 root root 1074 Dec 29 11:19 hosts.conf
-rw-r----- 1 root nut 1413 Aug 11 07:14 nut.conf
-rw-r----- 1 root nut 3650 Dec 29 09:36 ups.conf
-rw-r----- 1 root nut 2589 Aug 11 07:14 upsd.conf
-rw-r----- 1 root nut 2134 Dec 29 15:46 upsd.users
-rw-r----- 1 root nut 11895 Dec 29 11:13 upsmon.conf
-rw-r----- 1 root nut 3891 Aug 11 07:14 upssched.conf
-rw------- 1 nut root 1420 Aug 11 07:14 upsset.conf
-rw-r--r-- 1 root root 4003 Aug 11 07:14 upsstats.html
-rw-r--r-- 1 root root 6644 Aug 11 07:14 upsstats-single.html
Nut is running but I am concerned about the cgi part of it running upsstats.cgi
I ended up copying it into my www dir cp /var/www/nut-cgi-bin/upsstats.cgi /var/www/cgi-bin/
But everyone an sundry can view it. How would I lock this down to the local access only for that specific set of directories related to it. (I don't do web stuff at all)
As you can see the permissions are far from what I would call secure
ls -l
total 32
-rwxr-xr-x 1 root root 32028 Dec 29 11:18 upsstats.cgi