LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 09-05-2006, 01:48 PM   #1
darkarcon2015
Member
 
Registered: Jun 2004
Location: Potsdam, NY
Distribution: Fedora Core 6
Posts: 201

Rep: Reputation: 30
limit sudo


Is it possible to allow a person in the sudoers file to be able to run only a specific command as root? For instance, I want user "example" to only be able to run the command "wireshark" as root and nothing else. What would I add to the file? Thanks!
 
Old 09-05-2006, 02:04 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
yes you can restrict a sudoer to certain commands.
have a look at this post
http://www.linuxquestions.org/questi...hlight=sudoers
 
Old 09-06-2006, 04:12 AM   #3
magnus.therning
LQ Newbie
 
Registered: Jul 2006
Location: Cambridge
Distribution: Debian
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by darkarcon2015
Is it possible to allow a person in the sudoers file to be able to run only a specific command as root? For instance, I want user "example" to only be able to run the command "wireshark" as root and nothing else. What would I add to the file? Thanks!
I'd also recommend reading the manpage sudoers. It has several examples of the magic sudo can do :-)
 
Old 09-06-2006, 04:39 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by darkarcon2015
Is it possible to allow a person in the sudoers file to be able to run only a specific command as root? For instance, I want user "example" to only be able to run the command "wireshark" as root and nothing else. What would I add to the file? Thanks!
Thats exactly what Sudo is supposed to do although some distros like Ubuntu use it instead of a proper root account.
 
  


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
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Need SUDO Help Please! cereal83 Linux - General 2 08-17-2006 08:27 AM
sudo and permissions limit mfeoli Linux - General 2 05-05-2005 06:51 PM
sudo omry_y Debian 4 10-06-2004 09:01 AM
Quota issue, hard limit doesn't limit users Gratz Linux - Software 2 09-16-2003 07:35 AM


All times are GMT -5. The time now is 11:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration