I accidentally commented the line Members of the admin group may gain root privileges:
%admin ALL=(ALL) ALL
/etc/sudoers file, now i am unable to
sudo into my system using the only available existing user.
The default solution would be to drop into root account by going into safe mode but problem is root account seems to have password set which I don't remember (I don't even remember when I set it), so I am unable to enter into root account in safe mode to fix this file.
I can do anything non-related to
sudo like browsing internet, posting this post but not basic stuffs like proper shutting down of computer using
halt command, etc.
So, can anyone provide solution to it? Can live CD help here. I don't want to mess it again. It just one line mistake that's it. My system is Ubuntu 12.04 if there is specific fix in this version.