问题描述:

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

相关阅读:
Top