~3 دقیقه مطالعه • بروزرسانی ۲۹ بهمن ۱۴۰۴
1. Create Custom Jailed Shell Mounts
You can create custom jailed shell mounts to allow jailed users read-only access to additional directories or files on the server.
Important: All custom mounts are read-only for jailshell users.
1.1 Add Directories to a Custom Mount
- Create the file:
/var/cpanel/jailshell-additional-mounts - Add each directory path on a separate line:
/usr/local/test1 /usr/local/test2 /usr/local/test3 - Save the file.
Warnings:
- Use absolute paths only.
- Do not use trailing slashes.
- Do not place multiple entries on the same line.
1.2 Add Files to a Custom Mount
- Create the file:
/var/cpanel/jailshell-additional-files - Add each file path on a separate line:
/usr/local/test1.txt /usr/local/test2.txt /usr/local/test3.txt - Save the file.
1.3 Path Requirements
Correct format:
/usr/local/test1Incorrect formats:
test1— relative pathtest1/— relative + trailing slash/usr/local/test1/— trailing slash- Multiple paths on one line
Warning: Incorrect formatting may cause server failures.
1.4 Unmount a Custom Mount
You cannot remove entries from the mount file to unmount them. Use the umount command:
umount /home/virtfs/username/usr/local/exampleThe system does not automatically unmount custom mounts when the user logs out.
2. How to Disable Disk Space Warnings
You can disable disk space warnings using two different files depending on your needs.
2.1 Disable Disk Monitoring for Specific Mount Points
Edit the file:
/var/cpanel/chkservd_ignored_mountsAdd one mount point per line:
snap
tempbackupRules:
- Only alphanumeric characters and slashes are allowed.
- Each entry must be on its own line.
- You can only ignore entire mount points (e.g.,
/var), not subdirectories (e.g.,/var/tmp).
2.2 Disable All Disk Space Warnings
Create an empty file:
/var/cpanel/disablediskfreecheckWarning: This allows cPanel to operate even when the server is out of disk space, which may cause system failures.
3. How to Disable Services
cPanel’s nightly maintenance script automatically restarts services. If this causes issues, you can disable specific services.
Disabled services are stored in:
/var/cpanel/disabled3.1 Disable a Service
Add one of the following touch files:
| File | Description |
|---|---|
| secureit | Disables the secureit script |
| securetmp | Disables /tmp security |
| terminal-colors | Disables color output in WHM Terminal |
| cloudlinux | Prevents CloudLinux installation |
| auto-restart-services | Disables automatic service restarts |
4. How to Downgrade a Local License for Testing
You can downgrade your local license for development or testing using:
/var/cpanel/license.cfgNote: You cannot upgrade a license using this file.
4.1 Steps to Downgrade
- Log in as root.
- Edit the file:
/var/cpanel/license.cfg - Modify the following values:
| Variable | Type | Description | Possible Values | Example |
|---|---|---|---|---|
| producttype | string | Server profile | databasenode, dnsnode, dnsonly, mailnode, cloudlinux | dnsnode |
| maxusers | integer | User limit | Any positive integer within license limits | 40 |
After editing, refresh the license:
/usr/local/cpanel/cpkeycltConclusion
This guide covers advanced administrative tasks including custom jailed shell mounts, disabling disk space warnings, disabling services, and downgrading local licenses. These tools give system administrators greater flexibility and control over cPanel & WHM environments.
نوشته و پژوهش شده توسط دکتر شاهین صیامی