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.
|