Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-11-2004, 05:19 AM   #1
Registered: Apr 2004
Location: Malaysia
Distribution: Fedora Core
Posts: 93

Rep: Reputation: 15
shutdown & restart

how to only allow root to shutdown & restart the box?
and all other users no rights to it
Old 06-11-2004, 06:01 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
well...change your shutdown and reboot rights? first check out where they are:

whereis shutdown reboot

and you get something like:

shutdown: /sbin/shutdown
reboot: /usr/bin/reboot

(and possibly some files ending with .gz but don't care about them now). then just, as root (change the paths if necessary):

chown root /sbin/shutdown /usr/bin/reboot
chmod 700 /sbin/shutdown /usr/bin/reboot

from now on, those files should be owned by root and their rights set so that root can read, write and run them and no-one else can...this is one way at least
Old 06-11-2004, 06:03 AM   #3
Registered: Aug 2003
Location: Bulgaria
Distribution: OpenSuse 10.3, Debian 4.0r3 "Etch", FreeBSD 7.1, Ubuntu
Posts: 210

Rep: Reputation: 30
Yes b0uncer is right did it works??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No shutdown or restart option! thomasfingram Linux - Newbie 13 07-27-2005 05:35 PM
Shutdown.....but it restart max_232 Linux - Laptop and Netbook 2 07-08-2005 05:32 AM
shutdown/restart problems PiLgRiM SUSE / openSUSE 1 11-10-2004 09:17 AM
can shutdown but not restart... kernel 2.6.6 xtian Linux - General 1 06-19-2004 04:17 PM
shutdown / restart XServer esteeven Linux - Newbie 1 02-02-2002 10:10 PM

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration