LinuxQuestions.org
Register a domain and help support LQ
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 02-18-2008, 04:17 AM   #1
John79
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Create a normal “user” with “shut down” privileges?


Hi,

I would like to know if it is possible to create a normal “user” with “shut down” privileges?

It is for this IBM EXS at the office that is using some scale down Linux. I don’t know the actual version. Is there some command for this? I have searched online but I can find none.

We want to let a junior user (me) do shutting at the end of the day, rather than have the administrator do this.

Thank you very much for your help.
Rgds
John
 
Old 02-18-2008, 04:39 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
The mechanism for this is to add you to the sudoers file, restricted so you only get to do "sudo shutdown -h now" (or whatever).

Look in man sudoers, in the examples... the operator alias. That's you.

Last edited by Simon Bridge; 02-18-2008 at 06:18 AM.
 
Old 02-18-2008, 04:43 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You could probably use sudo for this type of thing. Your admin can run visudo and enter
Code:
userid ALL=NOPASSWD: localhost=/sbin/shutdown -h now
To shutdown you would then do
Code:
sudo shutdown -h now

Last edited by reddazz; 02-18-2008 at 04:46 AM.
 
  


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
Create a user with "shut down" privilege? John79 Linux - Server 1 02-18-2008 04:36 AM
Create new account with root privileges? prasannasellam Linux - Newbie 2 01-21-2008 02:34 AM
Create Profiles with Root Privileges dumbsheep Linux - Newbie 7 01-11-2005 02:46 PM
Allowing a normal nonroot user to create accounts? jon_k Linux - Software 3 07-10-2004 03:17 AM
How can I create a user with the same privileges as the root ? Menestrel Linux - Newbie 3 11-19-2003 10:38 PM


All times are GMT -5. The time now is 07:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration