Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Allowing users to reboot
@ 1996-09-10  4:00 Bert THOMPSON
  1996-09-11  4:00 ` M-Claude Vialatte
  0 siblings, 1 reply; 2+ messages in thread
From: Bert THOMPSON @ 1996-09-10  4:00 UTC (permalink / 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." 
---------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Allowing users to reboot
  1996-09-10  4:00 Allowing users to reboot Bert THOMPSON
@ 1996-09-11  4:00 ` M-Claude Vialatte
  0 siblings, 0 replies; 2+ messages in thread
From: M-Claude Vialatte @ 1996-09-11  4:00 UTC (permalink / raw)
  To: Bert THOMPSON


Bert THOMPSON wrote:
> 
> 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.
> 

	get sudo

_______________________________________________________________________
Marie-Claude Vialatte           | Telephone :	+33 73 40 77 08
C.U.S.T. - Clermont-Ferrand     | Fax :		+33 73 40 75 10
F-63177  AUBIERE Cedex - France | Email : mcv@custsv.univ-bpclermont.fr



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-09-11  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-10  4:00 Allowing users to reboot Bert THOMPSON
1996-09-11  4:00 ` M-Claude Vialatte

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