3

So, if I run script as root using gksu, can that script run another script as normal user? Thanks!

3

That is basically what sudo does. You can run a command as another user by typing:

sudo -u [user] <command>

or

sudo --user=[user] <command>

The sudo command is very flexible, and you can find out the many options you have with it using the man pages or the help option:

sudo --help
man sudo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.