Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I accidentally corrupted the /lib/libcrypto.so.6 on my Fedora Core 5 laptop, and now I cannot boot up the machine. As it boots, it prints out a bunch of error messages regarding the corrupted libcrypto.so.6 file and then it goes to a black screen with a cursor that has a spinning wheel. It keeps spinning forever.
I believe the files on the disk are all still intact, but I just cannot log in.
How do I restore this system file? Can I restore it using the FC5 installation disks?
I dont want to erase the data files on the disk....
Thanks for your reply. I am thinking of booting off the FC5 CDs and selecting the upgrade option to upgrade the existing system files but leaving the user files alone. Would that work? I assume it will just replace the corrupted libcrypto with the one from the CD. Since the CDs and what's on the disk are both FC5, the rest of the system is basically unchanged.
You could try booting up with the kernel option "init=/bin/bash". This may get you into a root shell without logging in. After mounting the partitions with the live systems root (/) on /mnt, you can chroot there, and then run "bash -l" to replace your PATH and other variables. Now you can try replacing the bad file. The libcrypto library is needed to encrypt your password to compare with the /etc/shadow entry. That is why you couldn't log in.
You could also delete the password hash from the /etc/shadow entry and reboot. I'm not certain if using a null password would bypass libcrypto.
Also, the install/rescue disks environment may require libcrypto itself, and could be a source for this file. I'm not certain what would happen if the file were updated since the install.
If you have access to the package the supplies libcrypto, you can run rpm2cpio on the package and extract it's contents with cpio. Then copy over the bad file(s) with the good one.
So there are a number of things you can try before reinstalling with an upgrade option. The latter works best if /home is on it's own partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.