Moving cagefs-skeleton directory

Navigation:  CageFS > Configuration >

Moving cagefs-skeleton directory

Previous pageReturn to chapter overviewNext page

Sometimes you might need to move cagefs-skeleton from /usr/share to another partition.

 

There are two ways:

 

1. If /usr/share/cagefs-skeleton is not created yet (cagefsctl --init wasn't executed), then execute:

 

$ mkdir /home/cagefs-skeleton 
$ ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton 
$ cagefsctl --init

 
2. If /usr/share/cagefs-skeleton already exists:

 

$ cagefsctl --disable-cagefs 
$ cagefsctl --unmount-all
# To ensure that the following command prints empty output: 
$ cat /proc/mounts | grep cagefs 
# if you see any cagefs entries, execute "cagefsctl --unmount-all" again.
$ mv /usr/share/cagefs-skeleton /home/cagefs-skeleton 
$ ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton
cagefsctl --enable-cagefs

 

On cPanel servers, if you place skeleton into /home directory, then you should configure the following option:

 

In cPanel WHM choose Server Configuration and go to Basic cPanel/WHM Setup, then in Basic Config change Additional home directories default value to blank (not "home").

 

Note. If this option is not set, then cPanel will create new accounts in incorrect places.