Run a command as another user Posted on March 4, 2018June 21, 2019 by admin su otheruser bash -c "id"[/shell][shell]sudo -u the_user bash -s "id"