PAM login library files corrupted, have ILOM, can I get root?

I was installing sfw sudo and its dependencies (libiconv, libintl, libgcc)on Solaris 10, running on an x86 x4200 and I corrupted some PAM library files. It's a standard Solaris 10 base install, with some added software & libraries from a vendor.

I am on console trying to get root access back, and receiving this error:

myserver console login: root
Nov 12 15:56:32 myserver login: open_module: /usr/lib/security/pam_login_auth.so failed: ld.so.1: login: fatal: /lib/libgcc_s.so.1: wrong ELF data format: ELFDATA2MSB
Nov 12 15:56:32 myserver login: load_modules: can not open module /usr/lib/security/pam_login_auth.so

The server is configured with LDAP, then local accounts to login. Can't get in with any account via SSH or console. I know the passwords, don't need to do any recovery. It just looks like I've borked the PAM module so badly that it won't allow any user to logon.

I have access to ILOM, is there anything I can try from ILOM to, either get a root prompt, or edit files? I doubt it hey. Would single user mode login prompt not use the same process?

I'm thinking I may have to re-image the host. Any thoughts?

Nope. you need to boot from dvd/cdrom and revert the pam.conf.

1 Like