Administration

How to create a new sudo user

Quick reference guide on creating a new sudo user - Blog by SH3LL

SH3LL
· 2 min read
Send by email
Photo by Gabriel Heinzer / Unsplash

How to create a new sudo user

Quick reference guide on creating a new sudo user - Blog by SH3LL

Connect with me!

Create new sudo user

A quick reference guide on creating a new sudo user in linux. This guide assumes you already have root or another sudo user that you are using to perform these actions.


New user creation

adduser mynewusername

Fill out the prompts and add a password


Add user to sudo group

usermod -a -G sudo mynewusername

You can now switch to your new user with the following command.

su mynewusername

Thanks for reading!

- SH3LL

CONNECT