Introduction
You may want to have a standard set of files to push out automatically to all new accounts. To create such a set, place these files in a skeleton directory, and its contents will be copied into the account's home directory when it is created.
Procedure
For accounts owned by root, create the files into the /root/cpanel3-skel
directory. For example, for an .htaccess
file that is copied into all accounts upon creation, place the .htaccess
file in /root/cpanel3-skel/public_html/.htaccess
. When the account is created, that .htaccess
file will be present in its public_html
directory.
You can read more about skeleton directories in our documentation here: