LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo command (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-command-516478/)

boy_to_man 01-05-2007 01:17 AM

sudo command
 
HI everyone

How can i create a sudo command instead type pass of root when install a program
example: now when i install a program i must type
#su
#pass
#rpm -ivh ...(or something else)
now i want type

#sudo rpm -ivh ...(or more)

By anyway can you help me do this, i know that it quite easy, i have done 1 time before but now i am forgot how to make it.:D :Pengy:

Peace

runnerfrog 01-05-2007 01:45 AM

Hey, I recommend you this: run visudo to edit the sudoers file (/etc/sudoers):

Code:

# visudo
Then add this two lines:

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Why? To save time, now anytime you need a new user with administrative privileges, just add it to the admin group.
Cheers.


All times are GMT -5. The time now is 11:46 PM.