Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:sudo [2007/01/02 01:14] a created |
linux:sudo [2009/05/25 00:35] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SUDO tips and tricks ====== | ||
+ | |||
+ | |||
| | ||
Line 5: | Line 8: | ||
| | ||
+ | ===== How do I run a script as a certain user when it is called by another user with sudo? ===== | ||
+ | |||
+ | |||
+ | |||
+ | If a script that has been written needs to be run as a particular user, the / | ||
+ | |||
+ | Edit the / | ||
+ | |||
+ | # | ||
+ | |||
+ | In this example, SCRIPT1 is the script that will be executed. TESTUSER is the alias of users who have permission to execute the script via sudo and test is the user that the script must be run as. | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | If the sudo / |