[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
Neil Williams wrote: > > On Friday 19 Sep 2003 2:22 am, Keith wrote: > > Related to this, it would be nice to have a simple way for a "normal" > > user to shut down the local machine, which isn't up to running a > > man shutdown > shutdown can be called from init(8) when the magic keys CTRL-ALT-DEL > are pressed, by creating an appropriate entry in /etc/inittab. This > means that everyone who has physical access to the console keyboard can Well changing the line in /etc/inittab so that ctl-alt-del does shutdown -h (halt) rather than shutdown -r (reboot) is quite handy. It saves having to hit the off switch just before the re-boot gets started. This way the system shuts down and waits, for you to either switch the box off or do another ctl-alt-del which starts a reboot (I just found that out by accident, must be something in the BIOS!) Thing is, ctl-alt-del don't work from a graphical terminal, you have first to do a ctl-alt-F1|F2|F3|... to change to a text terminal, so a shutdown button would still be nice. > So making it SUID might not be enough. Try each. This SUID business is what I don't understand. I want to write a script that can be called by any user and which itself executes /sbin/shutdown -h which only works for root. What exactly do I have to do for this to work? Keith (Bailey) -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.