简体   繁体   中英

cPanel PHP API with Kohana

I need to change passwords of FTP users with cPanel.php my cPanel is using pureftpd for creating FTP users, I want to implement change password for FTP user's.

The problem is pureftpd is creating virtual users in system and cPanel.php API manipulates users in server's /etc/passwd file.. will it be possible with cPanel API to change password of FTP user's created by pureftpd?

You can use the cPanel API2 to change password for FTP accounts from script:

Here is the code sample:

https://github.com/vthink/cpanel_api

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM