Re: turning off computer

1997-03-16 Thread Kai Grossjohann
> I Brake for Moths writes: I> Is there a way for a user without root priveleges to cleanly I> unmount the root file system and shutdown the computer? I did "chmod ug+s /sbin/halt" and I'm happy since. Be aware, though, that now anybody can immediately shut down your computer who has an

Re: turning off computer

1997-03-10 Thread James W. Lynch
- Received message begins Here - Could one add a user named "halt" or "shutdown" whose login shell was shutdown with the appropriate parameters? Jim. Jim Lynch, System Engineer, SGI/Cray Research, Inc. /

Re: turning off computer

1997-03-06 Thread Ted Harding
( Re Message From: J.P.D. Kooij ) > > The solution with a file in /tmp is an elegant way around the the > setuid-root scripts problems. On the other hand, because /tmp is > world-writable and many system processes write to it, it might create it's > own backdoors The point about using a root-own

APM (was turning off computer)

1997-03-06 Thread I Brake for Moths
Thanks for the overwhelming response to my question. I chose the shutdown.allow solution of evil genius Bonecrusher Rulnick. At least no one can say that those debian types can't even turn off their computers! On Thu, 6 Mar 1997, Niels wrote: > on the console - or get one of those eery mother

Re: turning off computer

1997-03-06 Thread Vadim Vygonets
On Wed, 5 Mar 1997, Boris D. Beletsky wrote: > Bilbo Beggins. (did I spelled it right?) No. Baggins. BTW why don't you people use Ctrl-Alt-Del? I just don't understand. Or you want to let remote users to shutdown your computer? Vadik. > >

Re: turning off computer

1997-03-06 Thread Oliver Elphick
In message <[EMAIL PROTECTED]>, pa [EMAIL PROTECTED] writes: >The easiest way to have a shutdown command that the other members of your >family can use with out giving the root password out is this: >Step #1 - create a shutdown user and password ( you don't have to put the > pass

Re: turning off computer

1997-03-06 Thread Kevin Scott
If you're using xdm, it is quite easy to add buttons to the login screen to enable the machine to be rebooted or shut down - a sample Tk script was posted to the list earlier this year, and we are currently using a modified version here. I can post more details if there is any interest... Kevin

Re: turning off computer

1997-03-06 Thread Rob Browning
I Brake for Moths <[EMAIL PROTECTED]> writes: > Is there a way for a user without root priveleges to cleanly unmount the > root file system and shutdown the computer? > > I've been running 'init 0' as root before turning off the box, but I > don't want to have to give out the root password to m

Re: turning off computer

1997-03-06 Thread Paul McDermott
The easiest way to have a shutdown command that the other members of your family can use with out giving the root password out is this: Step #1 - create a shutdown user and password ( you don't have to put the password in if you don't want to ) step #2 - change the field right after the

Re: turning off computer

1997-03-06 Thread Boris D. Beletsky
On Wed, 5 Mar 1997,, Britton wrote: Britton> I admit I don't remember how the bit codes work (especially Britton> the suid bit) but it looks like you are trying to create a Britton> suid shell script. This isn't allowed under linux anymore Britton> (or System V, I think) because it ca

Re: turning off computer

1997-03-06 Thread Britton
On Wed, 5 Mar 1997, Boris D. Beletsky wrote: > On Wed, 5 Mar 1997, I wrote: > > I> Is there a way for a user without root priveleges to cleanly > I> unmount the root file system and shutdown the computer? > I> > I> I've been running 'init 0' as root before turning off the box, but >

Re: turning off computer

1997-03-06 Thread Britton
On Wed, 5 Mar 1997, I Brake for Moths wrote: > Is there a way for a user without root priveleges to cleanly unmount the > root file system and shutdown the computer? > > I've been running 'init 0' as root before turning off the box, but I > don't want to have to give out the root password to m

Re: turning off computer

1997-03-06 Thread Boris D. Beletsky
On Wed, 5 Mar 1997,, Larry wrote: Larry> Larry> "BB" == Boris D Beletsky <[EMAIL PROTECTED]> writes: Larry> Larry> > On Wed, 5 Mar 1997, I wrote: I> Is there a way for Larry> a user without root priveleges to cleanly I> unmount the Larry> root file system and shutdown

Re: turning off computer

1997-03-06 Thread Larry 'Daffy' Daffner
"BB" == Boris D Beletsky <[EMAIL PROTECTED]> writes: > On Wed, 5 Mar 1997, I wrote: I> Is there a way for a user without root priveleges to cleanly I> unmount the root file system and shutdown the computer? I> I> I've been running 'init 0' as root before turning off the box, I

Re: turning off computer

1997-03-06 Thread Boris D. Beletsky
On Thu, 6 Mar 1997,, J.P.D. wrote: J.P.D.> I've seen people write some nice scripts to do the job for J.P.D.> mortal users. J.P.D.> J.P.D.> As already noted though: J.P.D.> J.P.D.> The setuid shell script can be run by any user logged in on J.P.D.> your system, either on the consol

Re: turning off computer

1997-03-06 Thread Bruce Perens
Let's not forget another obscure init feature: In /etc/inittab, you'll find this line: # Action on special keypress (ALT-UpArrow). kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work You can set that one up to call "init 0", avoiding all of this shutdown nonsense. It migh

Re: turning off computer

1997-03-06 Thread J.P.D. Kooij
I've seen people write some nice scripts to do the job for mortal users. As already noted though: The setuid shell script can be run by any user logged in on your system, either on the console or over the network. As not already stated: Shell scripts that are setuid to root are generally con

Re: turning off computer

1997-03-06 Thread Jason Gunthorpe
On Wed, 5 Mar 1997, I Brake for Moths wrote: > Is there a way for a user without root priveleges to cleanly unmount the > root file system and shutdown the computer? > > I've been running 'init 0' as root before turning off the box, but I > don't want to have to give out the root password to my

Re: turning off computer

1997-03-06 Thread Pete Templin
Your best bet is to use the "sudo" program or some such. You can establish groups of users and allow them to run predefined programs as root by feeding sudo their OWN password. For sanity sake, set your EDITOR environment variable to the editor of your liking and then use the "visudo" command to

Re: turning off computer

1997-03-06 Thread John M. Rulnick
Date: Wed, 5 Mar 1997 18:58:20 -0500 (EST) From: I Brake for Moths <[EMAIL PROTECTED]> Is there a way for a user without root priveleges to cleanly unmount the root file system and shutdown the computer? Yes, they just need to log in and give the three fingered salute, after you give

Re: turning off computer

1997-03-06 Thread Ted Harding
( Re Message From: I Brake for Moths ) > > Is there a way for a user without root priveleges to cleanly unmount the > root file system and shutdown the computer? > > I've been running 'init 0' as root before turning off the box, but I > don't want to have to give out the root password to my fam

Re: turning off computer

1997-03-06 Thread Boris D. Beletsky
On Wed, 5 Mar 1997, I wrote: I> Is there a way for a user without root priveleges to cleanly I> unmount the root file system and shutdown the computer? I> I> I've been running 'init 0' as root before turning off the box, but I> I don't want to have to give out the root password to my

turning off computer

1997-03-06 Thread I Brake for Moths
Is there a way for a user without root priveleges to cleanly unmount the root file system and shutdown the computer? I've been running 'init 0' as root before turning off the box, but I don't want to have to give out the root password to my family (it's bad enough that I know it!) just so they