Sunday, October 26, 2014

HowTo: Fix "user is not in the sudoers file. This incident will be reported" in Debian

In Debian, the user created during installation is not automatically added to the sudoers list. To fix do:
  1. Change to root user by typing su in a terminal.
  2. As root, do visudo.
  3. Search for line root    ALL=(ALL:ALL) ALL.
  4. Copy that line (in nano, do Ctrl+K then Ctrl+U to uncut and on more Ctrl+U to duplicate the line).
  5. Change that new line to like timus    ALL=(ALL:ALL) ALL. This adds user timus to the sudoers.

No comments: