[Nut-upsuser] still no nut at reboot

Gene Heskett gene.heskett at gmail.com
Tue Nov 16 15:47:29 UTC 2010


On Tuesday, November 16, 2010 10:04:46 am Charles Lepple did opine:

> On Nov 15, 2010, at 11:37 AM, Gene Heskett wrote:
> > On Monday, November 15, 2010 11:30:32 am Charles Lepple did opine:
> > 
> > [...]
> > 
> >>> I have attached it as it exists now.
> >> 
> >> Backing up a bit, what is your overall goal of setting nutuser=gene?
> > 
> > So I could control it as the user I normally run as.  That's fixable
> > of
> > course.
> 
> For controlling access to the read/write variables and commands, see
> "man upsd.users". As mentioned, if you want to prevent someone from
> reading status, you would need to firewall the NUT port. (The
> upsd.users construct exists because the notion of system userids is
> very specific to a single system, so there needs to be a way to
> specify rights for remote connections.)
> 
> > But would that not mean I would have to become root to cause it to
> > do a shutdown?
> 
> There is a discussion of how things work in "man upsmon", but
> basically, you start it as root, and it keeps a root-privileged
> process around that listens to a pipe from the unprivileged process.

Ahh, that explains why I see two copies running, one as me and one as root.

I have killed it all, and changed upsd.users to be this, passwds redacted 
of course:
[root at coyote etc]# cat upsd.users
[root]
                password = xxxxxxxxxxxxxx
                actions = set, fsd
                instcmds = all

[gene]
                password = yyyyyyyyyyyy
                upsmon master

And then restarted all 3 processes by hand from a root cli.  No errors 
reported from the startup.

The driver is running as 'ups', upsd is running as ups, and two sessions of 
upsmon are running, one as root and one as me.  Can I assume this is the 
correct profile now?

Now to go see what I can do for the scripts in /etc/init.d once I've had 
some coffee.  Last night is best described as poor sleeping conditions, 
trying to get my innards acclimated to metformin, a diabetic aid to glucose 
control.

Thanks Charles.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
It's from Casablanca.  I've been waiting all my life to use that line.
		-- Woody Allen, "Play It Again, Sam"



More information about the Nut-upsuser mailing list