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, 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 BR, Samuel Korpi ------------------------------------------------------------------------- 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