I'd like to be able to
su to another user to run a script with reduced permissions. Unfortunately I have to type the password in every time, is there a way to create a user without needing the password prompt?
Add the following to your
You can then run commands as
You can also limit what commands can be executed via sudo by replacing the
You can su to root, and then when you su to another user, the password is not required.