[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian Etch Installation. Root password doesn't works, why?



On Sat, Nov 08, 2008 at 11:53:17AM +0800, Umarzuki Mochlis wrote:
> make sure the keyboard works normally. Try typing a few minutes with a live
> CD.
> 
> You can reset the password by:
> 
> appending "init=/bin/bash" to boot parameter
> 
> remount root directory
> # mount -o remount,rw /
> 
> reset root's password
> # passwd root

Mount it read-only again (arrow up to get previous lines)
# mount -o remount,ro /

Continue with standard boot sequence:
# exec /sbin/init


Two things to note: 

1. if you just changed the password and pulled the plug, changes were 
probably not saved. mounting read-only is normally a good way to see 
that the changes are saved.

2. The exec trick works because the shell is process no. 1. Thus if you
exec /sbin/init in the same process it knows it is THE init process, and
not a telinit(8).

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: