pam_mkhomedir for Solaris?


 
Thread Tools Search this Thread
Operating Systems Solaris pam_mkhomedir for Solaris?
# 1  
Old 04-28-2009
pam_mkhomedir for Solaris?

Hi Folks

I am trying to implement automatic creation of Home directory's when a new user logs in using the pam_mkhomedir.so module.

I managed to download the binary pam_mkhomedir.so from Dr. Jochen Keutel - pam_mkhomedir for Solaris and copied it into /usr/lib/security.

I added the following entry in /etc/pam.conf :

other session required pam_mkhomedir.so skel=/etc/skel umask=0022

But i am unable to login and find the following error in /var/adm/messages:

load_modules:can not open module /usr/lib/security/pam_mkhomedir.so
open_module:/usr/lib/security/pam_mkhomedir.so failed:ld.so.1:sshd:fatal wrong elfdata format:elfdata2msb

The pam_mkhomedir is owned by root:bin. It has executable rights.
How do i make this work?

Note - I have downloaded the binary staright from the site. I haven't done any compile.
# 2  
Old 04-28-2009
You downloaded a binary for SPARC while running Solaris on x86. You need to pick the right binary if available otherwise compile it from source.
# 3  
Old 04-28-2009
Ok. Does anybody have a compiled version for x86?

Jilliagre,Can you tell me how you deduced that i have used a SPARC binary on an x86 machine. The site from where i downloaded doesn't seem to give me any indication on that.


Thanks
HG
# 4  
Old 04-28-2009
elfdata2msb means it is big endian, which for Solaris means SPARC.
As the loader can't load it, it must be running on a little endian architecture which means x86.
# 5  
Old 04-28-2009
Thanks,jlliagre.....every post(by experts) in this forum reminds me that i have miles to go before i can call myself an Admin.Thanks for helping me pave.
Can somebody respond to my SOS for pam_mkdir module(compiled) for x86? Smilie
# 6  
Old 04-28-2009
Did you try following the instruction to compile it from source explained on the web site ?
# 7  
Old 04-28-2009
No. I don't have gcc installed in this machine to compile it. Am thinking of downloading it(gcc),now that the chances of finding a compiled package looks bleak. Smilie

HG
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

How to add Solaris text console to Solaris grub2 menu?

Hi, I am new to sloaris and just instlled the solaris 11.2, i know little more about linux, i open the /boot/grub/grub.cfg in solaris and there is many other entries forl solaris 11.2 one of them is for 'Oracle Solaris 11.2 text console' but at boot grub2 only show the first default entry that... (1 Reply)
Discussion started by: shamsat
1 Replies

2. Solaris

Solaris ssh client hangs when connecting to another Solaris machine

Got a strange problem. I have 4 Solaris servers all configured the same, Solaris 10 x86 update 10. When I try to ssh from one Solaris 10 server to another server ssh hangs. I have an identical server and when I try this everything works fine. The weird thing is if I am root on the server... (1 Reply)
Discussion started by: ccj4467
1 Replies

3. Solaris

Package needs to be installed for using pam_mkhomedir.so?

Hi, What is the necessary package that needs to be installed for using pam_mkhomedir.so in pam.conf file? And from where can i get that file? Is that package already shipped with Solaris 10? Because when i use that file i am getting "open_module: stat(/usr/lib/security/pam_mkhomedir.so)... (1 Reply)
Discussion started by: sathya47
1 Replies

4. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies
Login or Register to Ask a Question