Using Skeleton Directories in cPanel

The skeleton (aka “skel”) directory is one of the frequently ignored features on Linux servers, especially for hosting providers.  With the skel directory, you can easily configure a default set of files to be automatically copied into new user accounts, which is particularly useful for customizing the holding pages for new customer websites.

 

On a bare Linux server, the skeleton folder can be found in /etc/skel.  On cPanel servers, the directory will be in “cpanel3-skel” in the home directory of the user that owns the account being created.  For example, if you’re the root user and you’re creating an account on the server, that account’s default files will be copied from /root/cpanel3-skel.  If you’re a reseller, it will be in your home folder, ie /home/yourusername/cpanel3-skel.

 

Let’s say when new users are created on your server, you want their websites to automatically show a basic index.html page that says “coming soon”.  You may also want the user to have a customized .bashrc file for their SSH sessions.  If you are root, you’ll create the following files:

 

  • /root/cpanel3-skel/public_html/index.html
  • /root/cpanel3-skel/.bashrc

 

Now, when user accounts are created, their accounts will automatically contain .bashrc and public_html/index.html.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

5 Ways to Get a User’s Disk Usage

This may seem pretty simple, but I see a lot of questions about how to get a user’s disk space...

500 Internal Server Error help

First remember that “Internal Server Error” does not mean a server problem. It implies an...

Adjust Email Quota

If you need to adjust your email mailbox quota, you can do so from within your cPanel account.1)...

Changing an FTP User’s Path

By default, your main FTP (cPanel) user will have and FTP path to the user’s home folder, and...

Common cPanel Commands List

Most Common Linux Cpanel Commands for Server Admins & Cpanel Users .Limit webuser resources...