How to create homedirectories on Unix automatically.
(Last modified: 28Jan2003)
This document (10067700) is provided subject to the disclaimer at the end of this document.
How to create Home Directories on Unix automatically
Novell eDirectory 8.5.1 for Linux
Novell Account Management 2.1 for UNIX/Linux
Home Directories are not created automatically during creation of accounts/users.
On Unix homedirs are not created automatically, when new users/accounts are created.
Account Management 2.1 is only for administration of users. It does not interact with the filesystem. This also mean that it cannot be used to control file access, except in the way of changing group membership, etc.
With PAM (Pluggable Authentication Modules) there is a module (pam_mkhomedir.so) which will create a home directory dynamically during the first time the user logs in.
On RedHat 7.2 the /etc/pam.d/login must look like this:
# This is required for console ownership access
session optional /lib/security/pam_console.so
session required /lib/security/pam_mkhomedir.so skel=/etc/skel umask=0022
#First try through NDS
auth sufficient /lib/security/pam_nds.so.0
account sufficient /lib/security/pam_nds.so.0
password sufficient /lib/security/pam_nds.so.0
session sufficient /lib/security/pam_nds.so.0
# Fall back to flat file authentication, try first password first
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_pwdb.so shadow nullok try_first_pass
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so
password required /lib/security/pam_pwdb.so nullok use_authtok md5 shadow
session required /lib/security/pam_pwdb.so
This should work on all Linux systems. It is not known if this module is part of Solaris.
The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.
- Document ID:
- Solution ID: NOVL69289
- Creation Date: 21Jan2002
- Modified Date: 28Jan2003
Did this document solve your problem? Provide Feedback