I am fairly sure you could just create a script that had the shutdown commands in it, then setuid the file (which is owned by root). Then you should be able to run the file as a normal user except it would get elevated to root privleges when ran. I don't have a beowulf in front of me right now so i can't test it but i do remeber doing something simlar before and having it work. For help with setuid and setguid check out the man page for chmod.
my .02 rob On Fri, 1 Nov 2002, Pavel Jurus wrote: > > I am playing with small cluster, the number of nodes is increasing however > and I just started to solve task of logging automatically to each node (or > selected list) to reboot or shutdown machine. To do this in script I need > to use rsh as root without password, but I haven't figured out how to do > it in Debian the right way. /etc/hosts.equiv doesn't help and I suspect > it is disabled by pam configuration because it is of course huge security > hole in normal settings. > > Could you please tell me "your way" of rebooting via script or give me some > hints how to configure pam (it is in /etc/pam.d/rsh is suppose but I'm > newbie to pam)? > > Pavel Jurus > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

