Please help. Sudo access problem
I've just removed my Ubuntu user from all groups and now I can't use sudo now.
It says: yura@yura:~$ sudo vi /etc/sudoers yura is not in the sudoers file. This incident will be reported. I need help ASAP cause I can't access my system. Thanks in advance |
Why did you remove your user from all groups? Doh!
Well, there's a couple things you can do. First I would reboot and select the option "Recovery Mode". If you don't have recovery mode, you'll have to boot with your Live CD and then chroot into your hard drive install. Then from a command prompt, run visudo and add your user on a line like Code:
yura ALL= ALL Also, note that the proper way to edit the sudoers file is to do sudo visudo as a user... |
If you don't have an "Recovery Mode" entry, you can just add the kernel flag single to boot into single user mode and restore the necessary groups/permissions.
|
Quote:
|
When you're booting, select the entry that corresponds to Ubuntu and press E (for edit). Then go to the kernel line and again press E. At the end of the line add single and press Enter to accept the changes. Then press B to boot the system in single user mode.
|
Thank you guys for help. I just loaded Linux using recovery grub item and added "yura" to group "admin".
Regards, Yuriy Padlyak |
All times are GMT -5. The time now is 08:24 PM. |