Ubuntu: Create Sudo User

Austin Songer
Code The World
Published in
1 min readJan 10, 2017

1. Log in to your server as the root user.

ssh root@server_ip_address

2. Use the adduser command to add a new user to your system.

Be sure to replace username with the user that you want to create.

adduser username

Set and confirm the new user’s password at the prompt.

3. Use the usermod command to add the user to the sudo group.

usermod -aG sudo username

4. Test sudo access on new user account

Use the su command to switch to the new user account.

su - username

--

--