Results 1 to 5 of 5

Thread: How to enable or disable Jailed Shell

  1. #1
    Join Date
    Apr 2010
    Posts
    23

    Default How to enable or disable Jailed Shell

    what is Jailed Shell ?

    Jailed Shell is a shell access provided to a cPanel user which is limited to his home directory and can execute limited set of command.
    With Jailed Shell user can do various operations like edit, copy, move, delete etc.

    Only root user has privileges to enable Jailed Shell.

    To enable it Login to WHM as root -->> Account Functions -->> Manage Shell Access
    Here you can select Radio button under Jailed Shell to enable the access and selecting Radio button under Disabled Shell will disable the access.
    Regards,
    Kuldeep N.

  2. #2
    Join Date
    Apr 2011
    Posts
    11

    Default

    Hello,

    Just to add to valuable information provided above by kuldeep, I'd like to let you know if you wish to enable the Jailed Shell Access to any of the cPanel account using SSH.

    Just open the file "/etc/passwd' for editing in editor of your choice like vi

    # vi /etc/passwd

    Now look carefully the cpanel user name entry for which you want to enable the Jailed Shell Access, it will be something like this.

    cpaneluser:x:880:875::/home/cpaneluser:/usr/local/cpanel/bin/noshell
    Just change it to

    cpaneluser:x:880:875::/home/cpaneluser:/usr/local/cpanel/bin/jailshell
    and you are done..

    Also to ensure the uninterrupted connections, please add the local machine ( internet ) Ip address ( of the machine from where you will access the server using SSH ) in server's Host Access Control List..

    To do so just follow these steps

    # vi /etc/hosts.allow and add the following line

    sshd : XX.XX.XX.XX : allow
    Note :: XX.XX.XX.XX should be replaced with the IP address of the machine you will use to access the account using SSH

  3. #3

    Default How to enable or disable Jailed Shell

    Jailed shell status can be enabled for any or all accounts by using the WebHost Manager's Manage Shell Access interface. thanks for share the information.

  4. #4
    Join Date
    Feb 2010
    Posts
    12

    Default

    May I ask, What are the features that are available in the Jailed Shell?

  5. #5
    Join Date
    Feb 2010
    Posts
    17

    Default

    Basically, the main purpose of jailed shell environment is to provide the user with a limited and restrictive environment. In that environment the user can do whatever he/she want. The idea behind restricting is that the user can't do much damage to the server if they are restricted. Usually, in shared hosting most of the web hosting companies don't provide shell access to the clients as thousands of websites are hosted on a single server.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •