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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Jailshell Problems

Discussion in 'Security' started by dansparks127, Jun 6, 2017.

Tags:
  1. dansparks127

    dansparks127 Registered

    Joined:
    Jun 6, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Hastings
    cPanel Access Level:
    Root Administrator
    When I trying to login trough ssh on any jailshelled user I always get:
    "Could not exec SHELL: /bin/bash"

    I browse /home/virtfs, and found that there are some files
    from root file system, but /bin and /dev for example are
    empty. I don't know if they should contain anything.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Please try running the following command via SSH as root to see if it helps to address the issue:

    Code:
    /scripts/clear_orphaned_virtfs_mounts --user=$username --clearall
    Replace "$username" with the username of the affected account.

    Thank you.
     
  3. Dan Sparks

    Dan Sparks Registered

    Joined:
    Jun 2, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Hastings
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Made no difference the problem is there are no mounts there, clearing the orphaned ones doesn't do anything.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
Loading...

Share This Page