Edit namespace.conf(around 2006~2007)
The first file you'll edit is /etc/security/namespace.conf, which controls the pam_namespace module. In this file, list the directories that you want PAM to polyinstantiate on login. Some example directories are listed in the file included with PAM and are commented out. Type
man namespace.confto view a comprehensive manual page. The syntax for each line in this file is
polydir instance_prefix method list_of_uids.
Briefly, here is what these variables represent:
polydiris the absolute pathname of the directory to polyinstantiate.
instance_prefixis the base directory of the new polyinstantiated user directory.
methodcan be user, level, or context.
list_of_uidsis a list of user names for which PAM will NOT polyinstantiate their directories.