Creating a Non-root User with Sudo Access on Ubuntu

Published on

Add a new user. sudo useradd <username> Add a sudo entry. sudo visudo Below the section heading # User privilege specification add the following entry. <username> ALL=(ALL:ALL) ALL Create the home folder sudo mkdir /home/<username> chown <username>:<usergroup> /home/<username> -R Set the password for the user. sudo passwd <username> Add the following entry to the /etc/passwd … Continue reading Creating a Non-root User with Sudo Access on Ubuntu