Solved

ld.so.1 Problem on Solaris 2.5.1

Posted on 1997-11-05
1
326 Views
Last Modified: 2013-12-27
       Some shared libraries were accidentally removed from /usr/lib, including ld.so.1.  Now nothing works (including cp, su, mv, ls), except for built-in shell commands (e.g., cd)!  I believe we are running Solaris 2.5.1.  I've tried using /usr/sbin/cp to copy the library back into /usr/lib, but /sbin/su and /sbin/sulogin complain that no root entry exists in the password file (I'm not sure what could have happened to the password file.  As a last resort I could try to boot from cdrom and copy the library in from there, but I was wondering if I there was an easy fix to the su/sulogin problem so that I can copy the library more easily.  The error I get from su/sulogin is below:

2:44pm [11] Wed 11/04/97 bors:~ % /sbin/su
su: Unknown id: root
                                                                                2:44pm [12] Wed 11/04/97 bors:~ % /sbin/sulogin
 
*** NO ENTRY FOR root IN PASSWORD FILE! ***

$

utmp_update: Cannot find /usr/lib/ld.so.1
Entering System Maintenance Mode
 
$ /home/khoi/static/cp /home/khoi/ld.so.1 /usr/lib/  
cp: cannot create /usr/lib/ld.so.1: Permission denied
$

Many thanks in advance for your help.

-Khoi
0
Comment
Question by:khoin
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 2007658
Assume that you have another Solaris in your net:

  1. if you have setup ftp (as recommded:), you should have
     a static version of cp and/or mv there (/pub/bin ?)
     Use these to copy your libs from an other host.

  2. Try to mount your corrupted /usr at another host with user
     root access, then copy missing libs from there.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now