Monday, March 10, 2014

Fix Broken Sudo

hey guys,

You have case, your user at ubuntu is not in the sudoers file?
i have a same case before, and now i will share how to solve this case.

1. Frist restart your PC and booting into recovery mode, you have to hold down the "shift key" during bootup (Frist boot, before your PC boot to ubuntu)
2. From the boot menu, select "Recovery mode"
3. After select "Recovery mode" wait for all boot-up proccess to finish
4. Select "Root" for "For to root shell prompt"
5. And then, inster this command
6. To check you are root, try this command "whoami"
7. The filesystem is mounted as read-only, so you need remount as read-write "mount -o remount,rw /"
8. To check that  the root partition is mounted read-write "cat /proc/mounts"
9. To add user account to sudo group "adduser *your user name* sudo", example : adduser trafaguy sudo
10. You can check file sudoers at "more /etc/sudoers"

Good luck, Hope this help :)

No comments:

Post a Comment