I'd like to give a particular user the ability to log on as any normal user (e.g. not root or daemon) and execute commands as that user.
How can I do that safely?
Currently my User sudo rights on a bash script like that:
if [ "$1" = "run" ]; then
sudo -u ${2} ${3};
fi
Which works but, security wasnt a focus.
Thanks guys.