Web host - 9.Type cd /mnt/partitionto change to the root partition s

9.Type cd /mnt/partitionto change to the root partition s base directory. 10.Type cd etcto enter the /etcdirectory, relative to where it sattached to your current setup. 11.Type cp passwd passwd-origto make a backup copy of your mainuser and password file. Don t skip this step. It lets you can revert to the original file if you messsomething up! 12.Type joe passwdto open the /etc/passwdfile in the joe text editor. You can press Ctrl-K and then the H key to display the Help menu at thetop of the screen at any time. To get rid of that menu, press the same keycombination again. 13.Look for the line similar to root:x:0:0:root:/root:/bin/bash14.Delete the x (or anything else) from between the first two colons sothat the line looks more like the following: root::0:0:root:/root:/bin/bash15.Press Ctrl-K and then the X key to save the file and exit the program. 16.When asked for the name of the file to save, just press Enter to acceptthe default. 17.Type rebootto reboot the machine. 18.When the CD-ROM ejects, remove it from the drive and press Enter tocontinue rebooting. 19.After you reboot into your system, log into a regular user account. 20.Open a terminal window. If you re not sure how to do so, see Chapter 14.21.Type su -and press Enter to become the root user. When you deleted that in Step 14, you actually erased any passwordfrom the root user. If you re prompted for a password, just press Enterwithout typing anything. 22.Open the /etc/passwd file in your preferred text editor. 23.Find the line you edited before. It should look something like: root::0:0:root:/root:/bin/bash24.Add the x back into place between the two colons. Remember, this is a lowercase x. It should look like the following now: root:x:0:0:root:/root:/bin/bash382Part V:The Part of Tens

Leave a Reply