...
Connect to your server through PuTTY. If you don’t already have PuTTY installed, please follow the link SSH to Instance using Windows.
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]
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
The function
lid
shows which groups a user belongs to. Using functionlid
with-g
flag will show which users belong in the indicated group.
The following will show the usernames of those in the groupwheel
.Code Block sudo lid -g wheel
To remove sudo permission, remove user from group
wheel
.Code Block sudo gpasswd -d newuser wheel
...
Connect to your server through PuTTY. If you don’t already have PuTTY installed, please follow the link SSH to Instance using Windows.
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]
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
The function
lid
shows which groups a user belongs to. Using functionlid
with-g
flag will show which users belong in the indicated group.
The following will show the usernames of those in the groupwheel
.Code Block sudo lid -g wheel
To remove sudo permission, remove user from group
wheel
.Code Block sudo gpasswd -d newuser wheel
...
Connect to your server through PuTTY. If you don’t already have PuTTY installed, please follow the link SSH to Instance using Windows.
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 pressing
ENTER
.Enter
Y
to confirm the information and continue.
...
Give User Sudo Permissions [Optional]
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
The following will show the usernames of those in the group
sudo
.Code Block getene group sudo
To remove sudo permission, remove user from group
wheel
.Code Block sudo gpasswd -d newuser wheel
...