The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Jailshell ?

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

  1. Getenks

    Getenks Registered

    Joined:
    Oct 17, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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:
    Code:
    http://host/whm
    http://host/securewhm
    http://host:2086
    https://host:2087
    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:
    Code:
    # su -l
     
Loading...

Share This Page