Issue
How to add third-party software into CageFS? By default, CageFS does not include any third-party software.
Environment
- CloudLinux
- CageFS
Solution
1. Create a configuration file /etc/cagefs/conf.d/SOFTWARE_NAME.cfg.
Here is an example of the openssh-clients.cfg file content:
[openssh-clients]
comment=OpenSSH Clients
paths=/etc/ssh/ssh_config, /bin/hostname, /usr/bin/scp, /usr/bin/sftp, /usr/bin/slogin, /usr/bin/ssh, /usr/bin/ssh-add, /usr/bin/ssh-agent, /usr/bin/ssh-copy-id, /usr/bin/.ssh.hmac, /usr/bin/ssh-keyscan, /usr/libexec/openssh/sftp-server, /etc/environment, /etc/security/pam_env.conf
devices=/dev/ptmx
2. You can add additional files, users, groups, and devices into the configuration template.
3. Then run the following commands:
cagefsctl --addrpm SOFTWARE_RPM_NAME
cagefsctl --update
Useful links
https://docs.cloudlinux.com/cloudlinux_os_components/#file-system-templates
Comments
0 comments
Please sign in to leave a comment.