当前位置: 动力学知识库 > 问答 > 编程问答 >

ftp - 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

分享给朋友:
您可能感兴趣的文章:
随机阅读: