< Day Day Up > |
Recipe 13.11. Repairing a Lost Root Password13.11.1 ProblemOops, you lost your root password. 13.11.2 SolutionNo problem whatsoever. Fire up Knoppix and open a root shell. Mount the filesystem containing /etc/shadow, and make it writable (see Recipe Recipe 9.10). Open /etc/shadow in your favorite editor, and find root's entry: root:$1$7nMNZYci$E.U6ftxnAZU0rk29qvYpk0:12460:0:99999:7::: Delete the password hash, which is between the first set of colons: root::12460:0:99999:7::: Now when you start up the system and log in as root, you will not be asked for a password. 13.11.3 DiscussionDon't forget to set a new root password. This is yet another demonstration that "anyone with physical access to the box owns it." See Chapter 12 for tips on securing the boot process. 13.11.4 See Also
|
< Day Day Up > |