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?Answer:
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
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
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.