The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Accessing FTP accounts from Perl Scripts

Discussion in 'General Discussion' started by rogergraves, Jan 5, 2005.

  1. rogergraves

    rogergraves Member

    Joined:
    Dec 29, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I need to write a perl script that can change passwords for existing FTP accounts created in cPanel. Does anyone have any ideas on how to approach this? It would be nice to be able to create and delete FTP accounts from this perl script as well, but not absolutely necessary for what I'm trying to do. The reason for the need to do this dynamically instead of within cPanel is for on-the-fly creation of FTP access for end-users who meet certain qualifications. I thought about doing this via an HTML multi-part form which would be a lot simpler approach but the uploaded files are going to be really, really huge and I'm worried about browser timeouts.
    Regards,
    ~Roger
     
  2. brentp

    brentp Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ayr, North Queensland, Australia
    use sockets to connect to cpanel and make the acct using the ftp create account url, or if you want you could study the cpanel API.

    Regards,
    Brent
     
Loading...

Share This Page