Rich Shepard wrote:
>     I read the sudoers man page and look at the examples and still don't grok
> how to make a simple entry: I want to allow username 'pamela' to run a shell
> script in her home directory as root because the script runs two commands
> that need root permission.
>
>     Do I need to set up an alias for this, then assign her to that alias?
>
>     In essence, I'd like something like this in /etc/sudoers:
>
>       pamela  /home/pamela/shell-scripts/iface.sh root
>       (username)      (command)                   (as root)
>
> A clue would be very nice,
>
> Rich
Rich,

Cmnd_Alias HERCOMMAND = /home/her/command

Then you can say:
pamela    her_machine=HERCOMMAND

It is almost that simple  or without command alias

pamela her_machine=/home/pamela/first_command /home/pamela/second_command

Russell Johnson beat me to it.  The only thing I could add is to use 
visudo as your editor.

Ken

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to