pam_mkdir issue

Sridhar Bandi bandis at india.hp.com
Thu Jul 15 17:38:33 UTC 2004


Hi Saravanan,

Can you do :
# ll /home/sara/pdt_build/pam/libpam_mkdir.1
# chatr /home/sara/pdt_build/pam/libpam_mkdir.1
# ldd /home/sara/pdt_build/pam/libpam_mkdir.1
and let me know.

The file has to be a shared library and not a relocatable object.
Let me know how are you compiling the module(library).

Cheers,
Bandi.


Saravanan wrote:

>  
> Hello All,
>  
> This query belongs to pam_mkdir module and user home directory 
> creation in HP-UX 11.11 PA RISC machine.
>  
> _Steps did :_
>  
> 1) Compiled pam_mkdir.c pgm and libpam_mkdir.1 is created.
>  
> 2) I'd like to make the pam_mkdir module do more than just create a 
> homedir from /etc/skel and set the umask.
>  
>         So added this line ,    login session required 
> /user/lib/security/libpam_mkdir.1 skel=/etc/skel/ umask=0022   in 
> /etc/pam.conf
>  
> 3) And debug is suffixed like, login    session required       
> /usr/lib/security/libpam_unix.1 debug  in /etc/pam.conf
>  
> 4) My requirement is, when a newuser is created and logged in , 
> automatically it will create /home/newuser directory should be created.
>  
> But I can create the newuser thru useradd command, but can't logged 
> into the machine thru that newuser account.
>  
>  
> # tail -f /var/adm/syslog/syslog.log
>  
>  
> Jul 15 01:11:42 yamuna login: load_modules: can not open module 
> /home/sara/pdt_build/pam/libpam_mkdir.1
>  
> #
>  
>  
> But /home/sara/pdt_build/pam/libpam_mkdir.1 exists.
>  
> # file /home/sara/pdt_build/pam/libpam_mkdir.1
> /home/sara/pdt_build/pam/libpam_mkdir.1:        PA-RISC1.1 relocatable 
> object
> #
>  
> Please help me to remove this error.
>  
> -Saravanan
>  
>  
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.719 / Virus Database: 475 - Release Date: 7/12/2004
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Pam-list mailing list
>Pam-list at redhat.com
>https://www.redhat.com/mailman/listinfo/pam-list
>  
>
   





More information about the Pam-list mailing list