简体   繁体   English

带有Kohana的cPanel PHP API

[英]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. 我需要使用cPanel.php更改FTP用户的密码。我的cPanel使用pureftpd创建FTP用户,我想为FTP用户实现更改密码。

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? 问题是pureftpd在系统中创建虚拟用户,而cPanel.php API在服务器的/ etc / passwd文件中操纵用户。.cPanel API是否可以更改pureftpd创建的FTP用户的密码?

You can use the cPanel API2 to change password for FTP accounts from script: 您可以使用cPanel API2从脚本更改FTP帐户的密码:

Here is the code sample: 这是代码示例:

https://github.com/vthink/cpanel_api https://github.com/vthink/cpanel_api

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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