Because Fedora does not add users to sudoers by default, the error isnotinthesudoersfile. will appear when we use sudo. Add the following method: 1. enter the root mode su-note: There is a space between su and-enter the current user's password 2. add the write permission chmodu +...
Because Fedora does not add users to sudoers by default, the "is not in the sudoers file." error will appear when we use sudo.
The method is as follows:
1. enter the root mode
Su-
Note: There is a space between su and -.
Enter the password of the current user
2. Add write permission
Chmod u + w/etc/sudoers
3. add yourself to sudoers
Gedit/etc/sudoers
Note that gedit is used here. if you are familiar with vi, vim can also be used. However, gedit is very convenient for beginners to solve the problem.
Search for root
The following line is displayed: root ALL = (ALL) ALL
Enter similar information below. for example, if your user name is user, add: user ALL = (ALL) ALL
Save after adding
4. revoke write permission
Chmod u-w/etc/sudoers
OK. the problem should be solved.
From firefoxbug's column