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!

PHP Script to Enable Jailed Shell

Discussion in 'General Discussion' started by hightekhosting, Oct 12, 2008.

  1. hightekhosting

    hightekhosting Active Member

    Joined:
    Aug 12, 2007
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    51
    Hi all,

    We're either after or looking to compile our own php script to be able to login to server and enabled jailed SSH for a user.

    Basically, we have a billing system we wish to integrate this into so that the client can login to our billing system and click a button that will login to the server and enable Jailed SSH on the account, only we do not know the API call or coding required to do this.

    We don't expect help with the system, just the code required that will tell WHM to enable jailed shell on the account.

    Any assistance would be appreciated.

    Regards,

    Dale Evans
    Manager
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. jfoc

    jfoc Well-Known Member

    Joined:
    Sep 17, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    156
    cPanel Access Level:
    Root Administrator
    just simple with cmdline running from your script:

    chsh -s /usr/local/cpanel/bin/jailshell username
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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