Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 1996 16:32:59 -0800 (PST)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Jeremy Sigmon <jsigmon@www.hsc.wvu.edu>
Cc:        questions@FreeBSD.org
Subject:   Re: Does RSH ignore ttys if .rhost present?
Message-ID:  <Pine.BSI.3.94.961115163010.3809R-100000@gdi.uoregon.edu>
In-Reply-To: <Pine.BSF.3.91.961115185017.7287B-100000@www.hsc.wvu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Nov 1996, Jeremy Sigmon wrote:

> I don't really like the idea either, but here is my problem.
> 3 machines.  1 UPS.  Nice UPS 1400 APC.
> I want to plug all three into it and when the primary one detects the 
> power out it can rsh to the others and shut them down before the battery
> dies.  The primary would trust nobody.  The other two would trust only
> the primary.  If anyone can think of another idea that does not involve
> buying two more UPS then let me know.  I got the idea from the script
> for upsd off of ftp.ww.com.

Don't forget that anyone in group operator can run shutdown too.

The permissions on /sbin/shutdown are: 
-r-sr-x---  1 root  operator  139264 Jul 13 19:38 shutdown*  

I do it all the time without su'ing to root.  That way you don't
comprimise system security quite so much.  You could create a dufus
account that is in operator but only can run shutdown. 

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.961115163010.3809R-100000>