select a user to execute a command linux code example Example: linux execute as user sudo -H -u otheruser bash -c 'echo "I am $USER, with uid $UID"'