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.

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:
    1
    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
     
  2. jfoc

    jfoc Well-Known Member

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

    chsh -s /usr/local/cpanel/bin/jailshell username
     
Loading...

Share This Page