12 replies
by W Bahny
by Jay Garmon
Wow. Disabled root account. Totally didn't see that coming.
by jaqui
edit the /ect/password or /ect/shadow file to change the password for root to be an empty pair of single quotes ''
next boot will have zero password for root.
got yas on this, shadow is an encrypted file not editable even as root
all such changes must be done as root.
su will be your friend for as long as you use linux. :)
by Jay Garmon
I'm not planning on trying this, but it's great for reference.
by jmgarvin
IIRC, Ubuntu doesn't really "have" a root account. You have to sudo everything.
So, say you wanted to use sudo
sudo
If you ever forget the root password, just reboot and in the grub boot screen, edit to start in run level 1.
So, e (for edit), down to where it says kernel /boot/vmlinuz (or whatever) and put a 1 at the very end of that line. Press enter, then b (for boot). You'll be in run level 1 now. So now you'll see a prompt that looks like:
sh#
Just type passwd and you've reset the root password to what ever you want.
Hope that helps.
by Jay Garmon
Thanks for the sudo tip.
by khushil.dep
by Jay Garmon
Good point about security.
by djcinsb
You don't really have to do the reboot gymnastics (oops, wrong olympics!) to set the superuser account to function in Ubuntu. You can just set its password using sudo, and then you'll have a working superuser account. Another alternative can be found in the notes at the top of the unofficial Ubuntu Starter Guide (http://www.ubuntuguide.org/#generalnotes): "If you are tired of typing "sudo" all the time, switch to root user by issuing "sudo -s -H" followed by user password." That way you can do superuser admin stuff all at once, without actually enabling the account.
(On my install, I just did the passwd piece because I prefer to have the superuser account as an option.)
by Jay Garmon
Thanks for the link.
by Jay Garmon
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending