I wrote
don't ever try to change that file if you are not absolutely sure of what you are doing
This is because you can mess things up completely!
Your sudoers file seems "almost" correct
Below is a correct sudoers file for Daryna
The (somewhat complicated) way to fix it if you can't use sudo at all is to boot in "Recovery mode"
and copy this content into the sudoers file.
First you have to copy the content to a text file, then copy it into the sudoers file using the terminal
I don't go into the details about that as you seem to be able to use sudo
Again
never, ever change the sudoers file if don't know
exactly what you are doing or, like now, get advice from a reliable source.
Open the sudoers file for editing
This is the correct somewhat strange command
The correct sudoers file
Code: Select all
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults
Defaults !lecture,tty_tickets,!fqdn
# User privilege specification
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL