<!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 tthat newuser account.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><U>/var/adm/syslog/syslog.log entry at the time of 
login</U> :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jul 14 05:44:41 krishna PAM: pam_set_item(2)<BR>Jul 
14 05:44:07 krishna PAM: pam_set_item(6)<BR>Jul 14 05:44:41 krishna PAM: 
pam_set_item(8)<BR>Jul 14 05:44:41 krishna PAM: pam_authenticate()<BR>Jul 14 
05:44:41 krishna PAM: load_modules: /usr/lib/security/libpam_unix.1<BR>Jul 14 
05:44:41 krishna PAM: pam_get_username(ux)<BR>Jul 14 05:44:41 krishna PAM: unix 
pam_sm_authenticate(login jenny), flags = 0<BR>Jul 14 05:44:41 krishna PAM: 
pam_mapping_in_use()<BR>Jul 14 15:14:43 krishna  above message repeats 2 
times<BR>Jul 14 05:44:43 krishna PAM: pam_set_item(6)<BR>Jul 14 05:44:43 krishna 
PAM: pam_get_username(ux)<BR>Jul 14 05:44:43 krishna PAM: pam_set_item(6)<BR>Jul 
14 05:44:43 krishna PAM: pam_mapping_in_use()<BR>Jul 14 05:44:51 krishna PAM: 
exiting with return code 14<BR>Jul 14 05:44:51 krishna PAM: pam_end(): status = 
Can not retrieve user credentials<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anyone help me?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Saravanan</FONT></DIV><FONT face=Arial size=2><FONT 
color=#808000><FONT color=#800000></FONT>
<DIV><BR></DIV><FONT color=#800000></FONT></FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2><FONT color=#808000><FONT 
color=#800000><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</FONT></FONT></FONT></FONT></DIV></BODY></HTML>