LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   root privs (https://www.linuxquestions.org/questions/linux-newbie-8/root-privs-766304/)

nagavinodh 11-02-2009 02:44 PM

root privs
 
Hi,
How to assign root privs to other users.

JohnGraham 11-02-2009 02:52 PM

Quote:

Originally Posted by nagavinodh (Post 3741677)
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

smeezekitty 11-02-2009 02:56 PM

you can use sudo bash for normal users to have root privlidges.

PTrenholme 11-02-2009 03:22 PM

Quote:

Originally Posted by JohnGraham (Post 3741686)
. . . 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."

smeezekitty 11-02-2009 04:56 PM

Quote:

Originally Posted by PTrenholme (Post 3741739)
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.


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