I would like to build a list of the user names and configuration file locations for the most common distributions which include NUT. So far I have: Distrib User Config directory debian nut /etc/nut/ opensuse upsd /etc/ups/ These will be used to produce more user-friendly tools and documentation for NUT. If you use some other distribution, could you report 1. How does the distribution identify itself? Suggestion: command grep ID /etc/os-release 2. Which non-root user is used to run the upsd and upsmon daemons? Suggestion: command ps -ef | grep upsd | grep -v -E "grep|cupsd" 3. Where does the distribution place the NUT configuration files? Suggestion 1: command locate upsd.conf | grep -E "^/etc" | grep -v cups Suggestion 2: command ls -d /etc/*/* | grep "upsd.conf" | grep -v cups I am particularly interested in Fedora, CentOS, Ubuntu, Mint, Arch and ***BSD. My thanks for any help you can provide. Roger
>From an older Ubuntu machine (I can grab from 18 & 20 later this week)~$ grep ID /etc/os-release ID=ubuntu ID_LIKE=debian VERSION_ID="16.04" $ ps -ef | grep upsd | grep -v -E "grep|cupsd" nut 1409 1 0 Mar19 ? 00:06:35 /lib/nut/upsd ~$ locate upsd.conf | grep -E "^/etc" | grep -v cups /etc/nut/upsd.conf ~$ Thank you, David Zomaya Tripp Lite ________________________________ This message is for the addressee's use only. It may contain confidential information. If you receive this message in error, please delete it and notify the sender. Tripp Lite disclaims all warranties and liabilities, and assumes no responsibility for viruses which may infect an email sent to you from Tripp Lite and which damage your electronic systems or information. It is your responsibility to maintain virus detection systems to prevent damage to your electronic systems and information.
Please see below information from OpenBSD 6.8. NUT is installed as a package: $ pkg_info -c nut Information for inst:nut-2.7.4p7> On Nov 19, 2020, at 6:09 AM, Roger Price <roger at rogerprice.org> wrote: > > I would like to build a list of the user names and configuration file locations for the most common distributions which include NUT. So far I have: > > Distrib User Config directory > debian nut /etc/nut/ > opensuse upsd /etc/ups/ > > These will be used to produce more user-friendly tools and documentation for NUT. If you use some other distribution, could you report > > 1. How does the distribution identify itself? > Suggestion: command grep ID /etc/os-release$ uname -mrs OpenBSD 6.8 amd64> > 2. Which non-root user is used to run the upsd and upsmon daemons? > Suggestion: command ps -ef | grep upsd | grep -v -E "grep|cupsd”$ ps aux | grep upsd | grep -v -E "grep|cupsd" _ups 85935 0.0 0.0 476 1280 ?? S 3Nov20 1:08.91 /usr/local/sbin/upsd> > 3. Where does the distribution place the NUT configuration files? > Suggestion 1: command locate upsd.conf | grep -E "^/etc" | grep -v cups > Suggestion 2: command ls -d /etc/*/* | grep "upsd.conf" | grep -v cups$ ls -d /etc/*/* | grep "upsd.conf" | grep -v cups /etc/nut/upsd.conf> > I am particularly interested in Fedora, CentOS, Ubuntu, Mint, Arch and ***BSD. > > My thanks for any help you can provide. RogerThanks, Kastus
On 11/19/20 9:09 AM, Roger Price wrote:> I would like to build a list of the user names and configuration file locations > for the most common distributions which include NUT. So far I have: > > Distrib User Config directory > debian nut /etc/nut/ > opensuse upsd /etc/ups/ > > These will be used to produce more user-friendly tools and documentation for > NUT. If you use some other distribution, could you report > > 1. How does the distribution identify itself? > Suggestion: command grep ID /etc/os-releaseminbar:root:~:2 # cat /etc/gentoo-release Gentoo Base System release 2.7> 2. Which non-root user is used to run the upsd and upsmon daemons? > Suggestion: command ps -ef | grep upsd | grep -v -E "grep|cupsd"minbar:root:~:6 # ps aux | grep $(which upsd) nut 5738 0.0 0.0 6064 448 ? Ss Nov01 1:28 /usr/sbin/upsd> 3. Where does the distribution place the NUT configuration files? > Suggestion 1: command locate upsd.conf | grep -E "^/etc" | grep -v cups > Suggestion 2: command ls -d /etc/*/* | grep "upsd.conf" | grep -v cupsGentoo uses /etc/nut -- Phil Stracchino Babylon Communications phils at caerllewys.net phil at co.ordinate.org Landline: +1.603.293.8485 Mobile: +1.603.998.6958
On 11/19/2020 6:09 AM, Roger Price wrote:> I would like to build a list of the user names and configuration file locations > for the most common distributions which include NUT. So far I have: > > Distrib User Config directory > debian nut /etc/nut/ > opensuse upsd /etc/ups/ > > These will be used to produce more user-friendly tools and documentation for > NUT. If you use some other distribution, could you report > > 1. How does the distribution identify itself? > Suggestion: command grep ID /etc/os-release > > 2. Which non-root user is used to run the upsd and upsmon daemons? > Suggestion: command ps -ef | grep upsd | grep -v -E "grep|cupsd" > > 3. Where does the distribution place the NUT configuration files? > Suggestion 1: command locate upsd.conf | grep -E "^/etc" | grep -v cups > Suggestion 2: command ls -d /etc/*/* | grep "upsd.conf" | grep -v cups > > I am particularly interested in Fedora, CentOS, Ubuntu, Mint, Arch and ***BSD. > > My thanks for any help you can provide. Roger >For CentOS 7 the user is 'nut' and the config directory is /etc/ups
On 11/19/20 4:09 PM, Roger Price wrote:> I would like to build a list of the user names and configuration file > locations for the most common distributions which include NUT. So far > I have: > > Distrib User Config directory > debian nut /etc/nut/ > opensuse upsd /etc/ups/ > > These will be used to produce more user-friendly tools and > documentation for NUT. If you use some other distribution, could you > report > > 1. How does the distribution identify itself? > Suggestion: command grep ID /etc/os-release > > 2. Which non-root user is used to run the upsd and upsmon daemons? > Suggestion: command ps -ef | grep upsd | grep -v -E "grep|cupsd" > > 3. Where does the distribution place the NUT configuration files? > Suggestion 1: command locate upsd.conf | grep -E "^/etc" | grep -v > cups > Suggestion 2: command ls -d /etc/*/* | grep "upsd.conf" | grep -v > cups > > I am particularly interested in Fedora, CentOS, Ubuntu, Mint, Arch and > ***BSD. > > My thanks for any help you can provide. Rogerraspbian, centos & redhat linux : config sits in /etc/ups, the daemons run as user nut wolfy
On 11/19/20 6:48 PM, Manuel Wolfshant wrote:> On 11/19/20 4:09 PM, Roger Price wrote: >> I would like to build a list of the user names and configuration file >> locations for the most common distributions which include NUT. So >> far I have: >> >> Distrib User Config directory >> debian nut /etc/nut/ >> opensuse upsd /etc/ups/ >> >> These will be used to produce more user-friendly tools and >> documentation for NUT. If you use some other distribution, could you >> report >> >> 1. How does the distribution identify itself? >> Suggestion: command grep ID /etc/os-release >> >> 2. Which non-root user is used to run the upsd and upsmon daemons? >> Suggestion: command ps -ef | grep upsd | grep -v -E "grep|cupsd" >> >> 3. Where does the distribution place the NUT configuration files? >> Suggestion 1: command locate upsd.conf | grep -E "^/etc" | grep >> -v cups >> Suggestion 2: command ls -d /etc/*/* | grep "upsd.conf" | grep -v >> cups >> >> I am particularly interested in Fedora, CentOS, Ubuntu, Mint, Arch >> and ***BSD. >> >> My thanks for any help you can provide. Roger > > raspbian, centos & redhat linux :read that as "redhat enterprise linux", of course> config sits in /etc/ups, the daemons run as user nut > > wolfy > >