Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 861 Bytes

add-user-to-sudo-group.md

File metadata and controls

25 lines (16 loc) · 861 Bytes

Adding My Developer User to the Sudo Group

Yo, ever seen this?

[sudo] password for developer: 
developer is not in the sudoers file.  This incident will be reported.

The obvious reason is that your user account is not allowed to run sudo.

First, you'll need to log in as root. You can't upgrade your account to run sudo if you can't run sudo in the first place! ;)

You can use visudo or a few other less-recommended methods, (hand-editing /etc/sudoers, anyone?) but the best option I found was to add my account to the sudo group.

sudo adduser developer sudo

Now log out, and log back in as developer. Done!

See the StackOverflow post as well as the Ubuntu docs on the subject.