On a SPARC v445 running Solaris 10 9/10, had to rebuild rpool and reattached the three existing mirrored zpools on the other existing disks, with their zfs filesystems and NG zones intact. The zones have been configured with zonecfg -z ZONENAME create etc.

... and are now online using zoneadm -z ZONENAME attach -U then simply booting after being in installed state, but I cannot zlogin to any of the zones except one. It shows that I am logged in, then a blank line, then immediately logged out again. When I try to login using zlogin -C ZONENAME I cannot; the error message is:

May 15 15:43:46 <hostname> login: open_module: stat(/usr/lib/security/pam_mkhomedir.so.1) failed: no such file or directory.
May 15 15:43:46 <hostname> login: load_modules: cannot open module /usr/lib/security/pam_mkhomedir.so.1

But /usr/lib/pam_mkhomedir.so.1 does not exist, and it does not exist on my other servers, but those zones are accessible using zlogin.

I can only zlogin to the zones with zlogin -S ZONENAME.

What to do next? Thank you.

  • The error message states /usr/lib/security/pam_mkhomedir.so.1 is missing but you later wrote /usr/lib/pam_mkhomedir.so.1 does not exist. Double check you look for the correct path. – jlliagre Jun 27 '13 at 5:10

There has AFAIK never been a pam_mkhomedir distributed with Solaris. It's possible someone installed one at some point. There is one here for example. There must be an entry in /etc/pam.conf that mentions it. To get things working until you decide if you want to install it, you should be able to comment it out from the global zone to make logins work

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.