Question
How do you add a command or binary to CageFS for all users using Filesystem Templates?
Answer
- Log in to the server via SSH or WHM's Terminal as the
rootuser -
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
Note: 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:
CONFIG_TEXT: [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.