Welcome to the most active Linux Forum on the web.
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 02-18-2008, 04:17 AM   #1
LQ Newbie
Registered: Feb 2008
Posts: 2

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


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.
Old 02-18-2008, 04:39 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

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

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 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