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.

cPanel Users can "cd .." to the server root..

Discussion in 'Security' started by Suleiman Boutzamat, Aug 10, 2016.

  1. Suleiman Boutzamat

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    I have a fresh cPanel / WHM dedicated server with root previliges.
    I have created a normal cPanel account for my first client - No reseller, just a normal account.

    To test security, i tried to "ssh cpaneluser@clientdomain.tld" and entered the accounts password, and logged in successfully, showing the users home directory. But i then tried the "cd .." command a couple of times with no limitations until i reached the servers root folder.

    Very critical issue, i hope someone knows the answer.
     
  2. Suleiman Boutzamat

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    I think i found the solution.
    Under "Manage Shell Access", the permissions was set to "Normal". I changed it to "Jailed".

    I am still able to go to the root folder, but now i can't "ls" the content, which is okay.
    Is it possible to limit to the initial folder?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might do better to select "Disabled Shell" instead. I would think most Hosting Providers wouldn't want to provide shell access at all unless the customer had a specific need for it to be enabled.
     
    Suleiman Boutzamat likes this.
  4. Suleiman Boutzamat

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Good and secure advice. Thank you.
     
    Infopro likes this.
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Happy to help. :)
     
    Suleiman Boutzamat likes this.
Loading...

Share This Page