LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-05-2007, 01:17 AM   #1
boy_to_man
Member
 
Registered: Dec 2006
Posts: 54

Rep: Reputation: 15
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.

Peace

Last edited by boy_to_man; 01-05-2007 at 01:19 AM.
 
Old 01-05-2007, 01:45 AM   #2
runnerfrog
Member
 
Registered: Jul 2006
Location: Paraná, Argentina
Distribution: Frugalware 0.6 (Terminus) - Kubuntu 7.04 (Feisty Fawn Herd 5)
Posts: 217

Rep: Reputation: 31
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.
 
  


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
Can't perform root command by using Sudo acbenny Linux - General 6 05-07-2008 08:19 PM
[Question] Cat command with sudo hbinded Programming 4 12-18-2006 01:53 AM
can't run app w/ sudo command fatblueduck Linux - Software 2 09-30-2005 07:39 PM
SUDO Command help TPAWired Linux - Software 3 08-15-2005 01:50 PM
sudo command usage??? pagadala_cs Linux - Software 1 12-24-2004 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:10 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
Open Source Consulting | Domain Registration