On Fri, Dec 17, 1999 at 10:37:09AM +0000, Thomas Ribbrock Design/DEG" wrote:
> 1) How do I enable the two users I have to shut that machine down
> properly remotely? I was thinking about "sudo" or something like
> that, but I don't really want to make accounts available on that
> machine. The box doesn't have telnet installed, just ssh.
> Maybe some kind of daemon? Or do I open myself up to a Denial of
> Service attack? The two other boxes on the network are both running
> Linux (RHL 5.2) as well, btw.
make a copy of shutdown to some other directory (keep it named shutdown
because it looks at it's name to determine it's behavior).
addgroup buddies # edit /etc/groups and add your two users to it
chown root.buddies shutdown
chmod 550 shutdown
chmod +s shutdown
Now only root and your two users can execute this binary.
> 2) How do I flag the status of the machine, i.e. how can I make sure
> it's shut down before I throw the switch without having a monitor? I
> was already thinking along the lines of having a LED hanging off the
> parallel port or something like that...
echo -e '/a' > /dev/console, or setleds -L +num +caps +scroll
--
Steve Borho Voice: 314-615-6349
Network Engineer
Celox Communications Corp
Fortune of the day:
To generalize is to be an idiot.
-- William Blake
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.