Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. To give the user sudo permissions, add the user to the group sudo, which gives sudo access to all members.

    Code Block
    sudo usermod -aG sudo newuser
  2. The following will show the usernames of those in the group sudo.

    Code Block
    getenegetent group sudo
  3. To remove sudo permission, remove user from group wheel.

    Code Block
    sudo gpasswd -d newuser wheel

...