You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Username is not in the sudoers file. This incident will be reported
First, make sure that your username is in sudo group
If you did, the problem may have something to do with sudoers file (/etc/sudoers)
in my case, i accidently commented out 1 important line of the file, which is:
%sudo ALL=(ALL:ALL) ALL
Since you no longer have sudo permission anymore, you would need PolicyKit to fix the sudoers file.
This fix does not require rebooting the device or console (physical) access. You can do it from your ssh session.
Image Source: NixOS/nixpkgs#18012 (comment)
Now, you can run pkexec visudo to fix your sudoers file. For more detail, see this.
The text was updated successfully, but these errors were encountered:
First, make sure that your username is in
sudo
groupIf you did, the problem may have something to do with
sudoers
file (/etc/sudoers
)in my case, i accidently commented out 1 important line of the file, which is:
%sudo ALL=(ALL:ALL) ALL
Since you no longer have sudo permission anymore, you would need
PolicyKit
to fix thesudoers
file.This fix does not require rebooting the device or console (physical) access. You can do it from your
ssh
session.Image Source: NixOS/nixpkgs#18012 (comment)
Now, you can run
pkexec visudo
to fix yoursudoers
file. For more detail, see this.The text was updated successfully, but these errors were encountered: