rohitp

Registered
Jun 6, 2007
2
0
151
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.:)
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
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.
 

rohitp

Registered
Jun 6, 2007
2
0
151
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 ........:)
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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 ........:)
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