Re: Remove Root Password from Shadow file
From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 4 Mar 2005 08:11:21 GMT
Klist Smith <firstname.lastname@example.org> writes:
>I forgot my root password for my Linux. Heard that I can simply remove
>the line in the "shadow" file under \etc\.
>What will happen if i simply remove it and reboot? Will it ask for a new
>password or what?
Remover the :x: in /etc/passwd for root. This will make the account
passwordless. Or log on in single user mode (linux 1 at the lilo prompt)
and then run passwd to make a new password for root.