Enable Jailed Shell access for a cPanel account to allow a user to access a command-line interface while restricting their access to only their home directory. This is performed by a Server Administrator in WHM.
Before you begin
You will need:
Server Administrator access to WHM
The specific cPanel account username or domain name
Enable Jailed Shell access
Log in to WHM.
Navigate to Account Functions > Modify Account.
Select the account you wish to modify from the dropdown menu.
Locate the Shell Access section.
Select the Jailed Shell option from the dropdown menu.
Click Change (or Save) at the bottom of the page.
Confirm the result
The account's shell access status will now be restricted to the "Jailed" environment.
When the user logs in via SSH, they will only be able to view and modify files within their home directory.
Limitations
Jailed Shell access is a security feature that limits the scope of the shell environment. It does not provide full root or administrative privileges; it only restricts the user's file system visibility to their specific account.
