[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: clean shutdown

On Wed, Apr 08, 1998 at 12:31:30PM -0400, David B Wilson wrote:
> Is there a way to do a clean shutdown without becoming root?
> (Preferably still restricting access to those who can push the power button.)
Either use the super or sudo package or install perl-suid and create
a small suid perl script like this:

system('shutdown -h now');

make it owner root and chmod u+s,a+x. If you want to restrict access to this
script, create a new group to contain all users that should be allowed to
use it, change the group of this script to this group and chmod o-x


| Quotes from the net:  L> Linus Torvalds, W> Winfried Truemper               |
| L>this is the special easter release of linux, more mundanely called 1.3.84 |
| W>Umh, oh. What do you mean by "special easter release"?. Will it quit      |
* W>working today and rise on easter?                                         *

Attachment: pgpYX9PDcIVXH.pgp
Description: PGP signature

Reply to: