pam_mkdir module --> /home/user directory creation problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 tthat newuser account.
 
/var/adm/syslog/syslog.log entry at the time of login :
 
Jul 14 05:44:41 krishna PAM: pam_set_item(2)
Jul 14 05:44:07 krishna PAM: pam_set_item(6)
Jul 14 05:44:41 krishna PAM: pam_set_item(8)
Jul 14 05:44:41 krishna PAM: pam_authenticate()
Jul 14 05:44:41 krishna PAM: load_modules: /usr/lib/security/libpam_unix.1
Jul 14 05:44:41 krishna PAM: pam_get_username(ux)
Jul 14 05:44:41 krishna PAM: unix pam_sm_authenticate(login jenny), flags = 0
Jul 14 05:44:41 krishna PAM: pam_mapping_in_use()
Jul 14 15:14:43 krishna  above message repeats 2 times
Jul 14 05:44:43 krishna PAM: pam_set_item(6)
Jul 14 05:44:43 krishna PAM: pam_get_username(ux)
Jul 14 05:44:43 krishna PAM: pam_set_item(6)
Jul 14 05:44:43 krishna PAM: pam_mapping_in_use()
Jul 14 05:44:51 krishna PAM: exiting with return code 14
Jul 14 05:44:51 krishna PAM: pam_end(): status = Can not retrieve user credentials
 
Can anyone help me?
 
-Regards
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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux