systemsautomation
asked on
Ubuntu Lost Sudoer
Hi
I am running Ubuntu 10.10. I have only one user which was able to Sudo few hours back. I made a new group abc and mistakenly ran the this statement
usermod -G abc myuser
I then logged out. Now I am not able to sudo.
When I sudo Linux says "myuser is not in the sudoers file. This incident will be reported"
Is there any solution?
I am running Ubuntu 10.10. I have only one user which was able to Sudo few hours back. I made a new group abc and mistakenly ran the this statement
usermod -G abc myuser
I then logged out. Now I am not able to sudo.
When I sudo Linux says "myuser is not in the sudoers file. This incident will be reported"
Is there any solution?
Offcourse I meant: SURE
ASKER
No. I cannot login as root. It says "Login Incorrect"
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Then try this:
echo 'myuser ALL=(ALL) ALL' >> /etc/sudoers
But be SHURE to put in >> (two >'s , whatever they are called) otherwise there might be some unexpected effects :-~