cagefs
CageFS command not working for user
cagefsctl
CageFS Installation
1 2 3 4 |
mkdir /home/cagefs-skeleton ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton yum install cagefs /usr/sbin/cagefsctl --init |
Go to
1 |
cPanel WHM WHM -> Server Configuration -> Basic cPanel/WHM Setup -> Basic Config -> Additional home directories |
Change the value to blank (not default “home”). Without changing this option, cPanel will create new accounts in incorrect places.
On saving, you get
1 |
Modifying “Home Directory Prefix” from “home” to “”. |
Enable CageFS
1 |
/usr/sbin/cagefsctl --enable-all |
Manage CageFS
1 2 3 |
/usr/sbin/cagefsctl --list-enabled /usr/sbin/cagefsctl --list-disabled /usr/sbin/cagefsctl --display-user-mode |
Updating Software
After php.ini or software change, run
1 |
cagefsctl --update |
Or if you have recently updated, run
1 |
cagefsctl --force-update |
Allow Software in CageFS
To allow ffmpeg, mplayer, etc.. create file
1 |
vi /etc/cagefs/conf.d/vshare.cfg |
Add
1 2 3 |
[vshare] comment=vShare Youtube Clone Requirements paths=/usr/bin/ffmpeg, /usr/bin/mencoder, /usr/bin/mplayer, /usr/bin/flvtool2, /usr/bin/lame, /usr/bin/yamdi, /usr/bin/qt-faststart |
1 |
vi /etc/cagefs/conf.d/git.cfg |
Add
1 2 3 |
[git] comment=Git tools paths=/usr/bin/git,/usr/share/git-core,/usr/bin/git-receive-pack,/usr/bin/git-upload-pack,/usr/bin/git-pull,/usr/bin/git,/usr/bin/git-cvsserver,/usr/bin/git-upload-archive,/usr/bin/gitk,/usr/bin/git-shell, /usr/libexec/git-core/ |
See cloudlinux