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 11-02-2009, 02:44 PM   #1
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
root privs


Hi,
How to assign root privs to other users.
 
Old 11-02-2009, 02:52 PM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by nagavinodh View Post
Hi,
How to assign root privs to other users.
Normal users can use the `sudo' command, if you (i.e. the root user) adds them to the sudoers list, usually /etc/sudoers. All they'd need to do is type `sudo ' and then the normal command-line they want to use. Don't edit the sudoers file by hand though - use the `visudo' command.

Lookup `man sudo' and `man visudo'.

John G
 
Old 11-02-2009, 02:56 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
you can use sudo bash for normal users to have root privlidges.
 
Old 11-02-2009, 03:22 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by JohnGraham View Post
. . . Don't edit the sudoers file by hand though - use the `visudo' command.

Lookup `man sudo' and `man visudo'.

John G
You can, in fact, use any editor you want to use to edit the sudoers file. The advantage of visudo is that it validates your syntax before saving the file, but - for systems with only a few users (e.g., family/home systems) - making the changes and testing them is not very burdensome.

Note that, if you're trying to maintain a secure system, you can specify in the sudoers the specific commands that a user may execute as "root."
 
Old 11-02-2009, 04:56 PM   #5
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Originally Posted by PTrenholme View Post
Note that, if you're trying to maintain a secure system
from the OPs post i dont that is the case and that is ok.
many many people misunderstand security.
security most people basically locks the people who should be using the computer out and gives the hackers a red carpet in.
 
  


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
Is it possible to find all items with 777 privs? homer_3 Linux - Newbie 1 06-05-2008 02:35 PM
How to run a Gtk application as a user with root privs? werner1975 Linux - Software 24 11-19-2007 07:20 AM
Needing root privs to start LAMPP server paul2463 Fedora 1 08-13-2006 07:00 AM
mysql 5 backup user privs michaelsanford Programming 0 04-01-2006 04:56 PM
Assign Privs to specific user sikandar Linux - Software 13 08-31-2003 02:12 AM


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