simple shell script run commad as user code example Example: linux execute as user sudo -H -u otheruser bash -c 'echo "I am $USER, with uid $UID"'