Instructions to Add A User to the sudoers File
These instructions are a companion piece to my educational posts on Ubuntu . They are intended for use on a personal Ubuntu Linux machine. You must know the root password to complete these instructions. If you are running these instructions on a machine other than your own personal machine, then confirm with your IT department that you have permissions to make changes to the sudoers file before attempting these instructions.
- Gain root access by typing su -.
- Enter the root password when prompted.
- Type “adduser username sudo”. (Make sure to replace “username” with the actual name of your user.)
- Type “exit” and press enter to leave root access.