LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-11-2004, 12:26 PM   #1
mcshen
LQ Newbie
 
Registered: Dec 2003
Distribution: womandrake
Posts: 28

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


hi

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, 12:35 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,354

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
"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.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 01-11-2004, 12:53 PM   #3
twantrd
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.....

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

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


Reply


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-17-2006 11:03 PM
Can't "shutdown -a -r now" as a normal user, though shutdown.allow exists mnemonic Linux - Software 5 08-15-2005 06: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 03:16 AM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 01:42 AM
Removing "shutdown" and "reboot" in logout window nearfar Red Hat 1 10-07-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:05 PM.

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