Re: lost my root password, howto ?
- From: Kent West <westk@xxxxxxx>
- Date: Thu, 30 Mar 2006 15:37:25 -0600
Zouari Fourat wrote:
Hello,This is probably found via google fairly easily, as it comes up fairly often.
I've got debian sarge installed and i've lost my root's password, how
to reset it ?
A couple of quick possibilities:
1) Boot off a live CD like Knoppix, mount the / partition as read/write, and edit "/etc/passwd", removing the "x" in the second field. Save the file, boot into single-user mode (not using Knoppix), and reset the password with "passwd". (You may need to then check to make sure the "x" is back in place; I can't recall.)
or if you don't have a live CD handy
2) at the lilo prompt (or equivalent), enter "linux init=/bin/bash". This will give you a very limited linux environment, in which you can remount the / partition read/write (like "mount -o remount,rw /dev/hda1 /"), and then make the changes mentioned above in scenario #1.
--
Kent
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- lost my root password, howto ?
- From: Zouari Fourat
- lost my root password, howto ?
- Prev by Date: lost my root password, howto ?
- Next by Date: Firefox always prints landscape
- Previous by thread: lost my root password, howto ?
- Next by thread: Re: lost my root password, howto ?
- Index(es):
Relevant Pages
- Re: cups works but dont print out!
... plug to another machine it reset itself. ... ErrorPolicy retry-job
... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... (Debian-User) - Re: crazy screen
... Is there a way to reset the settings? ... is to find any CRT or LCD that
can fit to your ... Then you can try to reset things. ... To UNSUBSCRIBE,
email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... (Debian-User) - Re: cups works but dont print out!
... different from config printer, or when I print but paper tray is empty ... plug
to another machine it reset itself. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
... (Debian-User) - Re: user permissions problems
... if it is set, reset it ... reinstalled gedit, ... >> Modify
settings or unsubscribe at: ... (Ubuntu) - RE: Resetting of the dataset
... I just realized I was way off base from your original question. ... just a matter
of running the execute statement again to reset it... ... To unsubscribe,
e-mail: beginners-unsubscribe@perl.org ... (perl.beginners)