How to install a custom BIN on CloudLinux (with CageFS)

CageFS creates a filesystem template in /usr/share/cagefs-skeleton directory. CageFS template will be mounted for each customer. This feature enable the system administrator to allow specific BIN to users.

So, the first step is to create a configuration file under the following directory:
/etc/cagefs/conf.d

In this example, we'll add the REDIS CLI tool to all users.

1) Let's create the file:
nano /etc/cagefs/conf.d/redis-cli.cfg

2) Add the following content to the newly created file:
[redis-cli]
comment=REDISCLI
paths = /usr/local/bin/redis-cli

3) Save and close the file:
CTRL+X  &  Y

4) Now we must update the skel & the active users profiles
/usr/sbin/cagefsctl --force-update

This last command should output something similar to:
Copying /usr/local/bin/redis-cli to /usr/share/cagefs-skeleton/usr/local/bin/redis-cli
Updating users ...
Updating statuses of users ...

Feel free to contact us if you would like us to make it happen :)
  • 32 Users Found This Useful
Was this answer helpful?

Related Articles

What are .htaccess files and how to create and edit them

.htaccess files are used to configure and provide the server with instuctions regarding the...

How to silence a CRON and prevent it to send emails

Problem:Every time that a CRON is running, an email is sent.  Those emails aren't always...

[EA4] New Relic APM on cPanel & CloudLinux CageFS

Many System Administrators tried to get PHP apps hosted on a cPanel server with CloudLinux and...

PDFinfo

Pdfinfo is a pretty useful tool.  Pdfinfo prints the contents of the 'Info' dictionary (plus some...

Installing GeoIP (PECL) on WHM

In order to install GeoIP via PECL on a WHM enabled server, you must first install 2 modules:1)...