LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-02-2011, 11:05 AM   #1
gangsta77
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Rep: Reputation: 0
sudo config file?


How do you update the sudo configuration file? Using a program?

Because i need to allow only my account to run sudo as root for a number of commands such as "mount" etc..
 
Old 03-02-2011, 11:12 AM   #2
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
You need to (as root) run the visudo command and make the appropriate changes.
 
Old 03-02-2011, 11:12 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You can probably do that with group memberships. Check the /etc/sudoers file to see which group and use sudo. On most systems, being a member of the "wheel" group will allow you to use sudo. I think on Ubuntu, the "admin" or "administrator" group is used instead.

Use the "visudo" program to edit the sudoers file if it is necessary to edit the file. The visudo program will check for locks to prevent corrupting sudoers. It will also perform sanity checks.
 
  


Reply



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
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
[SOLVED] "sudo: Can't mkdir /var/run/sudo/%user%: File exists" CNBarnes Linux - Server 7 01-10-2011 04:11 PM
LXer: sudo install, usage and sudoers config file basics LXer Syndicated Linux News 0 08-29-2010 12:30 PM
Debian, kdm config as sudo b1f30 Linux - Desktop 4 12-16-2008 01:49 PM
Lan Config file / internet config file Raven_X_Neo Linux - Networking 1 10-30-2002 01:05 PM

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

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