Error: username does not appear in the file sudoers. This incident will be reported.
Recently installed Debian. After entering the command sudo, terminal display such an error:
radek not in the file sudoers. This incident will be reported.
How to add a user to the sudoers file?
At the beginning of the log to the root account with the command:
1 | su - |
and enter the root password.
Next:
1 | sudo gedit /etc/sudoers |
or edit the file with other editor such as nano.
1 | nano /etc/sudoers |
and the tab:
1 | User privilege specification |
Under:
1 | root ALL=(ALL:ALL) ALL |
Add the exemplary user named Linux:
1 | linux ALL=(ALL:ALL) ALL |
I save.
Username of course, give your.
That's it 😉
Debian after installation (network installation) does not add the first user to sudoers. It remains to proceed as above.
fedora 29 x86/64 (cinnamon)
the first line of code about, the next bug crashes
This is a guide to Debian.
Here is mistake, this method will not work, linux ALL=(ALL:ALL) ALL , this should be placed at the very bottom under @includedir / etc /sudoers.d .