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



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@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: What rights do users have?
    ... > unlike trusted solaris, root is still god. ... privileges. ... Apparantly this is part of what's required for zones. ...
    (comp.unix.solaris)
  • renaming & resizing partitions
    ... rename the volume groups and logical volumes to shorter and more meaningful strings, e.g., vg0, root, swap ... split up / into smaller chunks (root, home, usr, var) ... rename the existing vol groups and log vols using vgrename and lvrename; ...
    (Fedora)
  • RE: Rename a user
    ... In my system, don't know why the root user disappear only toor exists, so I ... must rename toor to root:) ... Hoa, Nguyen ... Subject: Rename a user ...
    (freebsd-questions)
  • Re: Rendom
    ... > I used the rendom utility to rename my domain from company.com to ... How do I handle the Active Directory Integratged DNS stuff? ... For DNS you should hold the old and the new zones on the same ... servers holding the new zones to the server providing the old zone, ...
    (microsoft.public.windows.server.active_directory)
  • Re: rename how??
    ... > replying to the assertion that there was no rename command. ... Slackware and a number of other distros have no rpm database. ... [root]# which rename ...
    (comp.os.linux.misc)