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 :)
- 38 Users Found This Useful
Related Articles
[WHM/cPanel] Update WHM/cPanel using CLI
Occasionally, WHM or cPanel might experience errors that can only be resolved by updating the...
10 Points Server Maintenance Checklist
Server Maintenance Checklist Just like any other computer, Linux servers need periodic...
Freeing Space
Problem: Is there a way to tell the kernel to give back the free disk space now? Like a write to...
Tweak the swapinness
What is swappiness and why should I change it? swappiness is a value between 0 and 100 which...
Powered by WHMCompleteSolution