Using sudo in scripts
gcall at starcalif.com
Wed Aug 7 12:38:02 EDT 2002
This may sound like a basic question, but I have not been able to find
an answer anywhere.
Here is my scenario:
I need to give "userA" sudo access to a menu driven script. The menu
driven script will execute other system commands (i.e. cpio, tar, mt).
If the user executes the script (using sudo), will all of the other
commands (cpio, tar, mt....) be executed with sudo prefixed, or will I
need to prefix every command with sudo into the script?
Any help or guidance is greatly appreciated!
More information about the sudo-users