cloudlinux:how-to-add-commands-to-cagefs-users
Differences
This shows you the differences between two versions of the page.
| cloudlinux:how-to-add-commands-to-cagefs-users [2015-07-01 10:52:18] – created rory.blanchard | cloudlinux:how-to-add-commands-to-cagefs-users [2015-07-09 05:56:44] (current) – rory.blanchard | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to add additional commands to CageFS users in CloudLinux ====== | ====== How to add additional commands to CageFS users in CloudLinux ====== | ||
| - | < | + | < |
| + | ===== Adding paths to commands and files ===== | ||
| Use **SSH** to log into your server as root. | Use **SSH** to log into your server as root. | ||
| - | Using your favorite text editor, open the file **/ | + | Using your favorite text editor, open the file **/ |
| \\ | \\ | ||
| < | < | ||
| Line 11: | Line 12: | ||
| </ | </ | ||
| \\ | \\ | ||
| - | You will see a list of commands | + | You will want to add a list of paths separated by commas on the line that starts with **paths** |
| \\ | \\ | ||
| < | < | ||
| - | paths=/bin/arch, /bin/awk, / | + | [custom] |
| + | comment=custom paths | ||
| + | paths=/usr/local/bin/composer | ||
| </ | </ | ||
| \\ | \\ | ||
| Append the full path of the command you want to add; one at a time, separated by commas to the end of the line. Once you have added what you want, save the file. | Append the full path of the command you want to add; one at a time, separated by commas to the end of the line. Once you have added what you want, save the file. | ||
| - | To apply the change, run the following command **cagefsctl -r** and you will see the following | + | To apply the change, run the following command **cagefsctl --force-update** |
| + | \\ | ||
| + | < | ||
| + | cagefsctl --force-update | ||
| + | </ | ||
| + | \\ | ||
| + | ===== Adding packages to CageFS users ===== | ||
| + | |||
| + | If your program was installed via **Yum**, | ||
| + | |||
| + | Use **SSH** to log into your server as root. | ||
| + | |||
| + | Run the following | ||
| + | \\ | ||
| + | < | ||
| + | cagefsctl --addrpm < | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | Once you've added the package, run **cagefsctl --force-update** to update the cageFS user configuration. | ||
| < | < | ||
| - | **cagefsctl -r** | + | cagefsctl --force-update |
| - | WARNING: | + | |
| - | If you proceed, CageFS will be temporarily disabled and unmounted. | + | |
| - | Do you want to continue (yes/no)? yes | + | |
| - | | + | |
| - | Copying / | + | |
| - | Updating users ... | + | |
| - | CageFS has been enabled | + | |
| - | Updating statuses of users ... | + | |
| </ | </ | ||
| \\ | \\ | ||
| + | <note tip>The changes will not be applied until you update it</ | ||
| \\ | \\ | ||
cloudlinux/how-to-add-commands-to-cagefs-users.txt · Last modified: by rory.blanchard
