<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2> 
<DIV><FONT face=Arial size=2>Hello All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This query belongs to pam_mkdir module 
and user home directory creation in HP-UX 11.11 PA RISC machine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><U>Steps did :</U></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1) Compiled pam_mkdir.c pgm and libpam_mkdir.1 is 
created.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2) I'd like to make the pam_mkdir module do more 
than just create a homedir from /etc/skel and set the umask.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>        So added this 
line ,    </FONT><FONT face=Arial color=#808000 size=2>login 
session required /user/lib/security/libpam_mkdir.1 skel=/etc/skel/ 
umask=0022   <FONT color=#000000>in /etc/pam.conf 
</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>3) And debug is suffixed like, <FONT 
color=#808000>login    session 
required       /usr/lib/security/libpam_unix.1 
debug  </FONT><FONT color=#000000>in /etc/pam.conf</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>4) My requirement is, when a newuser is created and 
logged in , automatically it will create /home/newuser directory should be 
created.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But I can create the newuser thru useradd command, 
but can't logged into the machine thru that newuser account.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV># tail -f /var/adm/syslog/syslog.log</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Jul 15 01:11:42 yamuna login: load_modules: can not open module 
/home/sara/pdt_build/pam/libpam_mkdir.1</DIV>
<DIV> </DIV>
<DIV>#</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>But /home/sara/pdt_build/pam/libpam_mkdir.1 exists.</DIV>
<DIV> </DIV>
<DIV># file 
/home/sara/pdt_build/pam/libpam_mkdir.1<BR>/home/sara/pdt_build/pam/libpam_mkdir.1:        
PA-RISC1.1 relocatable object<BR>#<BR></DIV>
<DIV> </DIV>
<DIV>Please help me to remove this error.</DIV>
<DIV> </DIV>
<DIV>-Saravanan</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG 
anti-virus system (<A 
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.719 / 
Virus Database: 475 - Release Date: 7/12/2004</DIV></FONT></DIV></BODY></HTML>