Is not in the sudoers file. This incident will be reported

After you have finished your installation of Debian Linux operating system. The first thing to do is updating repositories. When trying to update the repositories using a user other than root, the result will be “username is not in the sudoers file.This incident will be reported”

to fix that, a) login as root, b) Add user to the sudo group c) reboot.

jill@VM-00:~$ sudo apt-get update
[sudo] password for jill: 
jill is not in the sudoers file.  This incident will be reported.
jill@VM-00:~$ 

jill@VM-00:~$ su -
Password: 
root@VM-00:~# usermod -aG sudo jill
root@VM-00:~# reboot
  • usermod : modify a user account
  • -a, –append : Add the user to the sudo group. Use only with the -G option.
  • sudo : the group of sudoers.
  • jill : the username

So After you execute all the command listed above, now you can use your username and update the repositories. As result you will not get the message telling you “is not in the sudoers file. This incident will be reported”

Related Post

Leave a Reply

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