Lost access to Solaris 10 11/06 after renaming /usr/lib/libxml2.so.2

From: Doug Yatcilla (yatcilla@purdue.edu)
Date: Fri Jun 22 2007 - 14:51:38 EDT


While troubleshooting an application software problem, I renamed the
/usr/lib/libxml2.so.2 in the global zone on a Sun X4500 running
Solaris 10 11/06.

This act, done in desperation, turned out to have a bad side effect.
The problem is that I cannot figure out how to rename it back:

$ sudo mv libxml2.so.2-dist libxml2.so.2
ld.so.1: sudo: fatal: libxml2.so.2: open failed: No such file or directory
ld.so.1: sudo: fatal: relocation error: file /usr/lib/libproject.so.1:
symbol pool_get_binding: referenced symbol not found
Killed

$ su
Password:
ld.so.1: su: fatal: libxml2.so.2: open failed: No such file or directory
ld.so.1: su: fatal: relocation error: file /usr/lib/libproject.so.1:
symbol pool_get_binding: referenced symbol not found
Killed

I tried logging in from the system console and that failed for
presumingly the same reason also.

I speculate the problem to be that the /usr/lib/libproject.so has a (now
unresolved) dependency on the libxml and libproject is needed to login.

I could have avoided this by having a root shell open somewhere, but I
did not do that.

I cannot log into the system as any user (including root.) I am
surprised to see that the Solaris zones running on the same system are
not affected by this. That is, I can log into them without problems
(even though /usr/lib is read-only mounted to the zones)

Is there any hope of getting root access to the system without a
reboot?

Will the system even work if I reboot?

I experimented on a Solaris 10 11/06 system running on a PC. I
renamed the same libxml2.so.2 file and power cycled the system.
It started back up again (a few XML related services failed to start)
But, I was able to log in without problem as root and rename the library.

I thought maybe the /sbin/su.static would let me log in without needing
anyting in /usr/lib. But, the /sbin/su.static is not setuid-root!
So, it does not work. On the test system, I made it setuid-root and I
was able to log in as root even with the missing libxml2.so. But, I
cannot do that on the production system since I cannot run any command
as root! What is the point of the /sbin/su.static?

Thanks for any advice. I will summarize any responses.

Thanks,
Doug
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:05 EDT