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 Backend Scripts

Discussion in 'General Discussion' started by rohitp, Aug 23, 2007.

  1. rohitp

    rohitp Registered

    Joined:
    Jun 6, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    Hello,

    Does anyone know where you could find help on all backend scripts for cpanel. Like I would like to know things like

    How does "Password Modification" in WHM really work on the backend. I mean like /scripts/chpass would change the account password but not the ftp password. But I don't know how to do this.

    I would really appreciate it if I would get some comprehensive guide to the whole lot under /scripts and there options......

    Please this is very urgent....

    Thank you guys......
    Rohit.:)
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Most of what cPanel does is not handled by the scripts in the /scripts/ directory, but rather through the cpsrvd binary, related binaries in /usr/local/cpanel/bin or (sometimes) Perl modules in /usr/local/cpane

    Some of the scripts in /scripts/ are no longer maintained.

    For specific scripts your best options are:

    1. Read the script
    2. Search the forum for that specific script

    If you want to automate some of what cPanel does, by using your own scripts, you can find documentation on our website.
     
  3. rohitp

    rohitp Registered

    Joined:
    Jun 6, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    Ok, that's great.

    But I don't understand half of what id in the scripts....

    Anyway I need to know a few things....

    Like for changing a user's cPanel password you give "chpass <user> <newpassword>".......right....
    But I have heard that the ftp passwords do not get changed .....Could you
    let me know what else should I run in order to get it done...

    Thanks a lot ........:)
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You may want to try the recently added change password function in the XML API:

    http://www.cpanel.net/plugins/xmlapi/passwd.html

    Note, you can call the XML API from a shell script such as a PHP Shell Script or a Perl Shell Script. You may appreciate the status codes associated with that particular API call if you are concerned about passwords getting out of sync with each other.

    More XML API docs available at: http://www.cpanel.net/plugins/xmlapi/index.html
     
Loading...

Share This Page