On Wednesday 09 August 2006 15:14, Samuel Korpi wrote:
> On 8/9/06, Priya PM <[EMAIL PROTECTED]> wrote:
> > I forgot my root password to login. Is there anyway I can login without
> > password or is there anyway I can reset the password?
>
> Provided that your guest (UML) distro uses /etc/passwd to store the
> password hashes

This works even with /etc/shadow (which is the most common choice) - obviously 
you'll need to edit /etc/shadow in this case.

> , you can reset the root password as follows (note that 
> you need root access on the host system to do this):
>
> 1. mount the uml rootfs:
>
>         mount -o loop <path_to_rootfs> <temp_mnt_path>
>
> 2. from the file <temp_mnt_path>/etc/passwd search for a line like this
>
>         root:XXXXXXX:0:0:root:/root:/bin/bash
>
>     where XXXXXXX represents the password hash
>
> 3. remove the hash from the file, unmount the rootfs and start uml -
> no root password
>     is required to login


-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to