From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dcd18fc3a4e17ee5,start X-Google-Attributes: gidfee84,public From: aet@mundook.cs.mu.OZ.AU (Bert THOMPSON) Subject: Allowing users to reboot Date: 1996/09/10 Message-ID: <512u5k$5v9@mulga.cs.mu.OZ.AU>#1/1 X-Deja-AN: 179622981 organization: Comp Sci, University of Melbourne newsgroups: comp.unix.osf.osf1 Hi, I want to give the ability to reboot to users without root access. For example, all users in group `reboot' should be able to reboot the machine. The obvious approach is to write a simple setuid root shell script that invokes `shutdown -r now'. This doesn't work. It seems OSF/1 is smart enough to disallow this sort of potential security hole. I also tried writing some C code which uses system("/usr/sbin/shutdown -r now"), but this also failed with return value 255. As the command gets passed to the Bourne shell, this is to be expected. Using execv also did not work. This was a bit surprising. Again, return value 255. Is there a way to do this? (I'd prefer not to install sudo if possible since it's overkill for what I want to do.) Please respond by email. If anyone else is interested, I'll forward. Bert --------------------------------------------------------------------------- Bert Thompson aet@cs.mu.oz.au "This sentence is true." ---------------------------------------------------------------------------