Introduction
In some circumstances, you may need to extend the functionality of your shell users on a server using CageFS. This article will demonstrate how to enable a command to all CageFS users by using Filesystem Templates.
Procedure
- Login to the server as the root user via Terminal or SSH
- Create a new file with a name that makes sense for the binary that you are adding. For example:
touch /etc/cagefs/conf.d/myCustomBinary.cfg
You should not directly edit existing files in the /etc/cagefs/conf.d directory. CloudLinux updates will remove changes to files provided by CloudLinux, so a new file is required for any customizations. - Open the file you created with your favorite text editor and add the following configuration. Be sure to update the specifics to match your own binary:
[my-custom-binary]
comment=This is a binary that is not typically found inside of CageFS.
paths=/bin/my-custom-binary, /usr/bin/another-custom-binary - Then update CageFS to include the changes:
cagefsctl --force-update
Comments
0 comments
Article is closed for comments.