Lost PSWD - How to recover

Adalbert Prokop adalbert.prokop at gmx.de
Sun Sep 11 14:17:01 UTC 2011


Am 11.09.2011 14:43, schrieb Zadikim Yisrael:

Hello Zadkim,

> The school needed a server.  I choose Samba.  In the process I forgot
> the pswd.  How to retrieve pswd?

Do you mean the root password? You cannot "recover" it, you will have to
set a new one.

Boot into the sigle user mode, type "passwd" and set a new password. If
GRUB is protected by a password, you will need it, too. If you do not
know it, you will have to boot from an extern medium (CD, USB, ...),
mount the hard drive with the root file system and edit /etc/shadow.
There you can replace the crypted password for root with nothing,
effectivly allowing the root to login without password.

If you can boot from a fedora rescue disk, you can mount the system in
rescue mode, chroot into /mnt/sysimage and use passwd to change root's
password.

-- 
best wishes
Adalbert

She won' go Warp 7, Cap'n!  The batteries are dead!


More information about the users mailing list