Bought a book half a month ago, it's natural to install a virtual machine, under the latest VM 8来 installation, feel the interface dazzle some, decisively installed on Redhat Linux Server version, one did not have the opportunity to continue to study, winter vacation at home with free natural tinkering up, but the tragedy is to forget the password, tried for half a day, root The user and the ordinary user's password has forgotten =. = Found a simple solution on the Internet, the pro-test effective, so decisively put the process up
Native operating system: Win7 flagship version of the bit
Virtual machine: VMware Workstation 8
Virtual machine operating system: Red Hat linux.5.5.for.x86. Server version 2515dd4e215225dd.iso
1. Restart Linux operating system
2. After the restart Linux in the terminal state next to a series of environmental checks, about half a minute will appear a color grub boot interface, there will be 5 seconds countdown stay waiting, the following figure
3. After the appearance of the above interface type E key, there will be a color guide, the following three selected Kernel/xen.gz-2.6.28-8.e15 Module/vmlinux-2.6.18.e15xen ro root=/dev/volgr oup00/logvo100 RHGB quiet module/initrd-2.6.18-8.e15xen.img 4. Move to the second option, press E to enter, add single or 1, and enter 5. Press B to enter the restart mode, and then the following prompts, enter passwd carriage return, prompts for the root user's new password, and repeat the new password sh-3.2# 6. Reboot can be restarted after completion.
Modify normal User password
1. Log on to the system with root, if you forget the username, then perform the 2nd step to find the username, if you remember the user name, jump to step 4th
2. Find/etc/shadow File
3. Locate the line at the beginning of the username, for example, my user name is PDS, the colon is the delimiter, and the red part is the cipher encryption part
Pds:$1$civoprgf$ajwq54w1xjbiffjm05jk/1:15353:0:99999:7:::
4. PDS is my username, with the terminal to execute passwd PDS command, enter a new user password can