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.
- 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.cfgYou 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:
comment=This is a binary that is not typically found inside of CageFS.
- Then update CageFS to include the changes: