Novell is now a part of Micro Focus

My Favorites


Please to see your favorites.

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 ( 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:
// CUT

# This is required for console ownership access
session    optional        /lib/security/
session    required         /lib/security/ skel=/etc/skel umask=0022

#First try through NDS
auth      sufficient          /lib/security/
account   sufficient        /lib/security/
password  sufficient        /lib/security/
session   sufficient        /lib/security/

# Fall back to flat file authentication, try first password first
auth       required        /lib/security/
auth       required        /lib/security/ shadow nullok try_first_pass
auth       required        /lib/security/
account    required        /lib/security/
password   required        /lib/security/
password   required        /lib/security/ nullok use_authtok md5 shadow
session    required        /lib/security/
// CUT

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:
  • 10067700
  • Solution ID: NOVL69289
  • Creation Date: 21Jan2002
  • Modified Date: 28Jan2003
    • NetIQeDirectory

Did this document solve your problem? Provide Feedback