Skip to main content

How to Disable Shell Access for a cPanel Account

Disable shell access for a cPanel account via WHM to prevent users from accessing the command line. This procedure is performed by a Server Administrator and affects the specific cPanel account selected.

Disable shell access for a cPanel account via WHM to prevent users from accessing the command line. This procedure is performed by a Server Administrator and affects the specific cPanel account selected.

Before you begin

You will need:

  • Server Administrator access to WHM

  • The specific cPanel account username or domain name

Disable shell access for a specific account

  1. Log in to WHM.

  2. In the search bar at the top left, type Modify Account and select the result.

  3. Locate the cPanel account you wish to modify and select it from the list.

  4. Scroll down to the Shell Access section.

  5. Select the Disable Shell Access option.

  6. Scroll to the bottom of the page and click Change.

Confirm the result

  • The account status will now reflect that shell access is disabled.

  • Users attempting to log in via SSH or other shell-based protocols for that specific account will be denied access.

Limitations

This procedure only disables shell access for the specific account selected. It does not affect the shell access permissions of other accounts on the server or the global server configuration.

Did this answer your question?