LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   limit sudo (https://www.linuxquestions.org/questions/linux-security-4/limit-sudo-480666/)

darkarcon2015 09-05-2006 01:48 PM

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!

w3bd3vil 09-05-2006 02:04 PM

yes you can restrict a sudoer to certain commands.
have a look at this post
http://www.linuxquestions.org/questi...hlight=sudoers

magnus.therning 09-06-2006 04:12 AM

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 :-)

reddazz 09-06-2006 04:39 AM

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.


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