Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-41212: How to modify the default files that get put into Home Directory for AD user created by CentrifyDC

Authentication Service ,  

30 September,20 at 10:15 PM


Is it possible to modify what the default files are that get put into a home directory when an Active Directory User's home directory is created during initial login when using CentrifyDC?


Yes, it is possible to modify what default files get put into a home directory when an AD user's home directory is created.

By default, Centrify will use the /etc/skel directory as the template for creating new users home directories.  Any files that exist in that /etc/skel directory will get copied over. If any file or directory is added to, removed from, or modified in that /etc/skel/ directory, that will reflect when a new users home directory is created.
[root@filesvr07 skel]# pwd
[root@filesvr07 skel]# ls -al
total 28
drwxr-xr-x.   3 root root    78 Aug  6 10:49 .
drwxr-xr-x. 150 root root 12288 Sep 30 17:41 ..
-rw-r--r--.   1 root root    18 Mar 31  2020 .bash_logout
-rw-r--r--.   1 root root   193 Mar 31  2020 .bash_profile
-rw-r--r--.   1 root root   317 Aug  6 10:49 .bashrc
drwxr-xr-x.   4 root root    39 Nov  6  2018 .mozilla
[root@filesvr07 skel]# 

That default directory can be modified if desired. In the /etc/centrifydc/centrifydc.conf file there is the pam.homeskel.dir setting, that sets the skeleton directory (/etc/skel) as the default directory.  
# Skeleton directory for creating new user home directory
# If you leave this value commented out then the default value,
# /etc/skel, will be used. If you do not wish to have files
# copied from a skeleton directory, uncomment this parameter and
# point to an empty directory.
# pam.homeskel.dir: /etc/skel

If the centrifydc.conf is modified, an adreload will need to be run as root or root equivalent user before the setting takes affect.

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.