Run a command as another user and/or group

sudo

  • Executes a single command as the superuser or another user.
    More information: <https://www.sudo.ws/sudo.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo --user={{user}} --group={{group}} {{id -a}}

click the source code to copy install sudo on any operating system with command-not-found.com