Share your knowledge at the LQ Wiki.
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 01-11-2004, 01:26 PM   #1
LQ Newbie
Registered: Dec 2003
Distribution: womandrake
Posts: 28

Rep: Reputation: 15
grant user "shutdown -h now"


i have 2 users in my linux box

1 root
2 mcshen

but user mcshen can't shutdown the machine. How do i give mcshen the permission to use "shutdown"?
Old 01-11-2004, 01:35 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"How do i give mcshen the permission to use "shutdown"?"

Log in as root.
Run kcontrol (Control Center)
Click on System administration -> Login Manager -> Sessions
In the Allow Shutdown box set Console to Everybody

Be prepared. Create a LifeBoat CD.

Steve Stites
Old 01-11-2004, 01:53 PM   #3
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Hi there,

-Jailbait: I don't use the GUI that much at all but from what you are saying it sounds like you are allowing 'everybody' to have permission to shutdown the computer. He only wants the user mcshen to do this.

-Mcshen: Use sudo. That's the answer to your question. You can probably set this up in GUI but then like I said, I don't use the GUI at all, just CLI. Do 'visudo' as root, in the Cmd_Alias section add the shutdown path (ie. /usr/sbin/shutdown or where ever) to an alias name, then at the very bottom of the config file put your name and the alias of the command. Kinda drunk right now so I can't remember the exact syntax. Do a google search on sudo or do 'man sudo'. If you are still having problems setting it up, I'll tell you the exact syntax once my headache clears.....

Old 01-11-2004, 02:30 PM   #4
LQ Newbie
Registered: Dec 2003
Distribution: womandrake
Posts: 28

Original Poster
Rep: Reputation: 15
thx in advance!!


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
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-18-2006 12:03 AM
Can't "shutdown -a -r now" as a normal user, though shutdown.allow exists mnemonic Linux - Software 5 08-15-2005 07:49 PM
I want to grant 'shutdown' previlege to a non-root user to do directly from console jagadee76 Linux - General 6 12-29-2004 04:16 AM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 02:42 AM
Removing "shutdown" and "reboot" in logout window nearfar Red Hat 1 10-07-2003 12:33 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 AM.

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