View Single Post
  #2   (View Single Post)  
Old 17th February 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

The general syntax for a sudoers rule is:

user system = (run as) commands

e.g.:

carpman ALL = (operator) ALL

Would allow you to execute any command as "operator" on any host with this rule in the sudoers file.

Then you would:

$ sudo -u operator <whatever>

Disclaimer: I haven't run the rule through visudo to check it. You may need to adjust it.
Reply With Quote