My user is removed from the sudoers file. I don't how it got removed because i only have access to my machine. I tried accessing the sudoers file but it mentions my username and asks the password for it like "[sudo] password for arunn:". But it doesn't accepts the password which i normally use to login to my machine and i hve no problem in it. The problem is when i try to use sudo and gives the error when i give the password and the error message as follows "arunn is not in the sudoers file. This incident will be reported". Also i recently added my user name to my virtualbox and will that be the problem ? Please i'm in terriblle situation so help please !
Asked
Active
Viewed 184 times
1 Answers
0
You can use pkexec even if you are not in sudoers. Do:
pkexec visudo
and add back an entry for your username. pkexec will accept your password since PolicyKit authorization is configured elsewhere, and is probably untouched by whatever messed with sudoers.
muru
- 207,228