LinuxQuestions.org
Review your favorite Linux distribution.
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 03-27-2011, 12:12 AM   #1
darthpinguim
Member
 
Registered: Feb 2011
Location: Belo Horizonte - MG - Brasil
Distribution: Ubuntu 12.04 / Debian 6
Posts: 32

Rep: Reputation: 0
Is it possible to change users's permission to commands?


Hi.
I got myself curious on the possibility to change user's permission to any command, or at least giving other users some command line "power".
It all started a few days ago, when another user here, had a problem so that the computer wasn't answering.
So, after waiting a while, chose to hit the Reset button and start the computer again.
Considering this situation, I thought myself that it would have been better to restart the computer, through command line, on any terminal (F1-F6). Anyway, this user is no administrator, thus wouldn't have permission to use the
Quote:
shutdown -h now
nor
Quote:
reboot
commands.
So, is it possible to let other users to use such commands, in order to safe rebooting the system, without logging as root?
Thanks in advance!
darthpinguim
 
Old 03-27-2011, 12:14 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by darthpinguim View Post
Hi.
I got myself curious on the possibility to change user's permission to any command, or at least giving other users some command line "power".
It all started a few days ago, when another user here, had a problem so that the computer wasn't answering.
So, after waiting a while, chose to hit the Reset button and start the computer again.
Considering this situation, I thought myself that it would have been better to restart the computer, through command line, on any terminal (F1-F6). Anyway, this user is no administrator, thus wouldn't have permission to use the nor commands.
So, is it possible to let other users to use such commands, in order to safe rebooting the system, without logging as root?
Thanks in advance!
darthpinguim
See

Code:
man sudo
 
Old 03-27-2011, 12:37 AM   #3
griff4472
LQ Newbie
 
Registered: Jan 2008
Location: PA - USA
Distribution: Fedora & RHEL7 (admin)
Posts: 7

Rep: Reputation: 0
user permissions or simply reboot

The previous answer on sudo allows rootly powers to any users; once sudo has been set up. But if you were looking for an answer to the what to do when presented a 'frozen' machine; one can often still reboot nicely by getting a different console. Ctrl-Alt-F2 for console 2, F2-F6 are generally available depending on the distribution (Ubuntu may use console 1, Fedora seems to be back to 7 again after a brief use of 1).

Anyhow, once you are at a different console (say console 2: Ctrl-Alt-F2), you will be presented a login prompt; but you can simply hit Ctrl-Alt-Delete and even a frozen machine will (generally) reboot.
 
Old 03-27-2011, 10:14 AM   #4
darthpinguim
Member
 
Registered: Feb 2011
Location: Belo Horizonte - MG - Brasil
Distribution: Ubuntu 12.04 / Debian 6
Posts: 32

Original Poster
Rep: Reputation: 0
Thanks! Should've considered the Ctrl + Alt + Del option. It's much easier than changing users' permission to a command. Anyway I'll consider taking a look at the sudo man page. I'm sure it'll be worthy.
Best regards
darthpinguim
 
  


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
Need ACCESS to change files! Every time I try to change a setting,"Permission Denied" Balarabay1 SUSE / openSUSE 2 03-06-2006 09:54 AM
10.1 - permission commands High-gain Linux - Newbie 4 06-16-2005 02:27 PM
Getting users permission phoenix99 Linux - Security 1 02-22-2005 05:36 PM
commands to Add Users bickyz Linux - Networking 2 11-12-2004 09:13 AM
Changing permission on commands erraticassassin Slackware 3 07-13-2004 02:46 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration