From root user, how can I give permissions to another user to execute the file /root/script.sh ?
The idea is to run the script like sudo -u user1 /root/script.sh
From root user, how can I give permissions to another user to execute the file /root/script.sh ? The idea is to run the script like |
||||
closed as unclear what you're asking by Gilles, slm♦, jasonwryan, Hauke Laging, Karlson Mar 6 '14 at 1:15Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question. |
||||
The user must have
It may be a good idea to leave |
|||
|
If your script is located in the root dir, then
Your
You normally would edit the file with You then also don't need to put The |
||||
|
I must say I never liked
Executed from root, it won't prompt for password. |
|||
|
sudo
command you wrote? – michas Mar 5 '14 at 22:22su(1)
– vonbrand Mar 6 '14 at 0:25