LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-23-2004, 05:54 AM   #1
usa1234
Member
 
Registered: Aug 2004
Posts: 69

Rep: Reputation: 15
Question sudoers


Hi
I have a question, hope someone can help me. I have two accounts on my system;
1- root
2- usama
And I mostly use account "usama". Whenever I try to launch "kppp" or "redhat-config-packages" or something like that (which requires administrative priviliges) I had to put root passward. As I am also root so can I make it possible that when I launch kppp or some other application, it souldnot ask for root password. I heard that I have to edit /etc/sudoers but I dont know that what I have to put in that file. Will tell me that what I have to do to overcome my problem.
Thanks.
 
Old 10-24-2004, 04:07 PM   #2
evilmrhenry
Member
 
Registered: Oct 2003
Distribution: Knoppix
Posts: 103

Rep: Reputation: 15
Adding the line
usama ALL=NOPASSWD: ALL

Will allow you to sudo commands without a password.

Adding the line
usama ALL=NOPASSWD: kppp, redhat-config-packages

will allow you to run those two commands with sudo without a password.

There is an example file here:
http://www.courtesan.com/sudo/sample.sudoers
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 06:03 PM
Regarding SUDOERS hinetvenkat Linux - Networking 1 09-02-2005 02:47 PM
Sudoers Fonke0412 Linux - Newbie 3 08-10-2003 04:54 PM
sudoers........ help linuxlah Linux - General 4 01-15-2003 12:54 AM
help with /etc/sudoers keevitaja Linux - Newbie 5 08-17-2002 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:03 PM.

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