Discussion Locked

root password

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I recover a root password?

9 replies

by stahler1

You can boot up the system in Single User mode by typing at the boot: linux single. From there you can use linuxconf or the chpasswd command. Good luck!!

by avi_mohod

Hi,
U can't get actual password of root if u don't remember.But u can put new password for root. When u boot ur machine u will get lilo prompt.Type there " linux single".U will boot in to linux without usernme & passsword verification.U will belogin as root.At prompt type "passwd" command and enter the new password and reconfirm it.
avi.

by bobkat

well depending on your linux disto you can go about it a few different ways, a way that has worked for me on every system i've ever tried has been to download a single disk distro (tomsrtbt), just make sure that it supports your file system (with unix=ufs support, linux ext2 or ext3 or rieserfs), boot the distro, mount the hard disk onto a mount point (/mnt), go to the etc directory under the mount point (/mnt/etc/), and use vi to edit the password file (/mnt/etc/passwd), after the first colon (:) there should be an x (because your using shadowed passwords) just delete the x and save the file, now reboot and log into the machine as root (without a password) then do passwd root and presto your back in control (had to help a friend out with a sun machine one time with that, and it wouldn't let him in single user mode without root password), have fun

by neeraj_rohliyan

boot system in single user mode
by lilo: linux single
u get the # prompt
use the command
# passwd root
change ur root password

This discussion is closed to new replies.