Add new user and add to sudoers file

By | 29th December 2015

Add new user

To add a new user

> adduser username

Add new user to sudoers list

> sudo mv firefox /opt/
> [sudo] password for username:
> username is not in the sudoers file. This incident will be reported

To allow user to carry out admin task, you will need to add user to the sudoers file – /etc/sudoers – see resources 1 for full descriptions. Edit the file and add the following after the line for root user

root    ALL=(ALL:ALL) ALL
username    ALL=(ALL:ALL) ALL

Resources

  1. Sudoers – ubuntu.com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.