Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: aet@mundook.cs.mu.OZ.AU (Bert THOMPSON)
Subject: Allowing users to reboot
Date: 1996/09/10	[thread overview]
Message-ID: <512u5k$5v9@mulga.cs.mu.OZ.AU> (raw)


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." 
---------------------------------------------------------------------------



             reply	other threads:[~1996-09-10  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-10  4:00 Bert THOMPSON [this message]
1996-09-11  4:00 ` Allowing users to reboot M-Claude Vialatte
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox