Versions Compared

Key

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

...

  1. Connect to your server through PuTTY. If you don’t already have PuTTY installed, please follow the link SSH to Instance using Windows.

  2. Create new user, for example newuser, and give the user a password with the following commands:

    Code Block
    sudo adduser newuser
    sudo passwd newuser

...

Give User Sudo Permissions [Optional]

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

    Code Block
    sudo gpasswd -a newuser wheel
  2. The function lid shows which groups a user belongs to. Using function lid with -g flag will show which users belong in the indicated group.
    The following will show the usernames of those in the group wheel.

    Code Block
    sudo lid -g wheel
  3. To remove sudo permission, remove user from group wheel.

    Code Block
    sudo gpasswd -d newuser wheel

...

  1. Connect to your server through PuTTY. If you don’t already have PuTTY installed, please follow the link SSH to Instance using Windows.

  2. Create new user, for example newuser, and give the user a password with the following commands:

    Code Block
    sudo adduser newuser
    sudo passwd newuser

...

Give User Sudo Permissions [Optional]

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

    Code Block
    sudo usermod -aG wheel newuser
  2. The function lid shows which groups a user belongs to. Using function lid with -g flag will show which users belong in the indicated group.
    The following will show the usernames of those in the group wheel.

    Code Block
    sudo lid -g wheel
  3. To remove sudo permission, remove user from group wheel.

    Code Block
    sudo gpasswd -d newuser wheel

...

  1. Connect to your server through PuTTY. If you don’t already have PuTTY installed, please follow the link SSH to Instance using Windows.

  2. Create new user, for example newuser, with the following commands:

    Code Block
    sudo adduser newuser

    This command will also ask to:

    • Assign and confirm a password for the new user

    • Enter any additional information about the new user. This is optional and can be skipped by pressingENTER.

    • Enter Y to confirm the information and continue.

...

Give User Sudo Permissions [Optional]

  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
    getene group sudo
  3. To remove sudo permission, remove user from group wheel.

    Code Block
    sudo gpasswd -d newuser wheel

...