How can we fix broken sudoers files in Ubuntu OS
======================================
Hi viewers!!! in this tutorial I'll show you how we can quickly fix the broken sudores files.
For this tutorial I'll give a normal user to sudo right but made some mistake in /etc/sudores to simulate the following error as showing below
Now see there is a syntax error in sudores files and we can not able to rectify this using the sudo command again. We are locked now Lets try to edit sudoers file again to correct this No luck here so
now what to do. lets try to change to root user and see what happen we are locked completely.
So how we can quickly fix this error without reboot the system and going to the recovery shell.
you can follow all the instruction in the video tutorial as showing below or you can follow the instruction mentioned in this article
So here is the trick just use the following one single command but very important this will work only on the OS installed with GUI ;)
pkexec nano /etc/sudoers
Once you run the above command it'll ask you for enter password as showing below
now enter the administrator password here and
wolla!!!! the file is now open and now lets make the changes
and save the file and then try again and you will find that now sudo command is back on track!!!!!
Thanks for watching this tutorial I hope you like this tutorial. For more please do visit my blog site and also subscribe my channel on youtube.
Have a nice day !!!!!
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.