Re: How do I make a User login shutdown my box?

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

 



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.

To set the SUID bit on shutdown you need to use " chmod +s " on the
file. You can then 
add /sbin to your path and you are good to go.

Duncan



>I've got RedHat 8 on a Athlon box and I'd like a user logon to perform
a shutdown of the box.

>I was advised to do the following:
>I've added a user called 'Sleep' and added this user to the root group
via the User Manager 
>program and made its login shell /sbin/shutdown in the /etc/passwd.

>I've added in the users directory 2 lines in the .bashrc of:
>PATH=$PATH:/sbin


**********************************************
Dr Duncan Mercer

Dunstaffnage Marine Lab
Dunbeg, Oban, Argyll,
PA37 1QA, Scotland

Phone +44 (0) 1631 559225
Fax      +44 (0) 1631 559001

email:- Duncan.Mercer@xxxxxxxxxx
Web:- http://www.sams.ac.uk/
***********************************************


                                        


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux