Solved

ld.so.1 Problem on Solaris 2.5.1

Posted on 1997-11-05
1
328 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

895 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