Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sudo: disable all but one command 2

Status
Not open for further replies.

w5000

Technical User
Nov 24, 2010
223
PL

hello,

I want to permit one user to run a command in sudo but for any other command, when tried to run in sudo, user should get simply:

Sorry, user xxx is not allowed to execute 'command' as root on system123.

instead of be propmpted for password.

kind regards.
 

Perhaps your Google is broken, here use mine:

GOOGLE
[thumbsup2]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 

so you probably also had problem to find answer to my question...
 
w5000, he gave you the answer !
Have a look at /etc/sudoers

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top