I accidentally changed my primary group using the following command.
sudo usermod -g localgroup shantanu #shantanu is my username
I interrupted this process as soon as I realize what is happening. As a result
sudo was working but
pkexe was affected. So I tried to restore my primary group using the same command
sudo usermod -g shantanu shantanu
Then I reboot my system. Now i can't use
sudo. So I open
root shell (recovery) and run the following the command
usermod -G sudo shantanu
But when I log in back to my account and run
sudo is not listed. Also i can't use
sudo. Finally what i did, add my user in visudo but i don't want to do this.
How can I add my user into sudo group? Thanks in advance.
ubuntu 14.04 64bit (up to date)