Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Jailshell ?

Discussion in 'General Discussion' started by Getenks, Oct 18, 2009.

  1. Getenks

    Getenks Registered

    Oct 17, 2009
    Likes Received:
    Trophy Points:
    I try login via Putty and i login successfully to
    some -jailshell-3.00$ ; anyidea what this is and how do I goto the root of the remote server
  2. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    Given that you are in a jail shell, I am guessing you logged in with some username other than "root" ;)
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Nov 5, 2008
    Likes Received:
    Trophy Points:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    A "jailed" shell a more restrictive shell environment used for security purposes to help reduce the likelihood of damage from malicious use or abuse.

    If your SSH configuration allows direct login as root and assuming root (Administrator) access is available, then you could simply enter a username of "root" and the root password when authenticating (e.g., when connecting via PuTTY).

    If direct root login is disabled, which the System Administrator would know, then it may be necessary to use a wheel user to login first followed by logging-in as root using the "su" command as detailed further below. To access the system as the root user the password for "root" must be known. To login as a non-root user first, then switch to root, it is required to have the non-root user added to the "wheel" group on the server; this may accomplished manually via SSH (if already logged-in as root) or via root access to WHM.

    WHM may be accessed via one of the following examples where "host" should be replaced by the server hostname, server IP address, or one of the hosted domain names:
    Via root access to WHM it is possible to change the restrictive "jailed" shell to a regular shell such as bash. Once logged-into WHM as root or with root privileges, the shell may be changed to bash using the feature at the following menu path:
    WHM: Main >> Account Functions >> Manage Shell Access
    Documentation: Manage Shell Access

    To add the non-root user to the wheel group, the following feature may be used:
    WHM: Main >> Security Center >> Manage Wheel Group Users
    Documentation: Manage Wheel Group Users

    Once the user has a normal bash shell, and once it is added to the wheel group, you may now use that user account to access the server and then log-in as root using a command like the following, where you are prompted to enter the root password:
    # su -l
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice