How do I make a User login shutdown my box?

Yin Ming yinming at mdc-ds.com
Tue Sep 28 01:31:26 UTC 2004


On Mon, 27 Sep 2004 17:36:15 +0100
"Duncan Mercer" <Duncan.Mercer at sams.ac.uk> wrote:

> Hi
> 
> Why not just set the shutdown function to run with superuser
> privileges. IE set the SUID
> bit. This way any user can shutdown your system.
> 
> BEWARE:- The default is not to let the standard user be able to
> shutdown the system as this
> is a security risk. Anyone shutting down the machine can put a bootable
> floppy in a drive at 
> restart etc.

Because I use linux as a home-edition, it replaces Win98, so there is no
risk of security in my home. Em.. maybe except my Mom, but she never
uses commands. She just pulls out plugs shouting out "GET TO BED!!!"

-- 
殷鸣 <yinming at mdc-ds.com>




More information about the redhat-list mailing list