From owner-freebsd-questions Fri Nov 15 16:33:03 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA29704 for questions-outgoing; Fri, 15 Nov 1996 16:33:03 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA29699 for ; Fri, 15 Nov 1996 16:33:01 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id QAA03996; Fri, 15 Nov 1996 16:32:59 -0800 (PST) Date: Fri, 15 Nov 1996 16:32:59 -0800 (PST) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Jeremy Sigmon cc: questions@FreeBSD.org Subject: Re: Does RSH ignore ttys if .rhost present? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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