Ftp User Creation Script

Discussion in 'Programming/Scripts' started by pushparaj, Sep 7, 2006.

  1. pushparaj

    pushparaj New Member

    Hi all,

    I need to automate the ftp user creation. Can any one help in this regard?

    I want the shell script or php script which can read for the user names & password and the it has to add the user through
    useradd command.

    I am totally new to shell script.

    Can anyone help in this regard?

    Thanks in advance
    Pushparaj
     
  2. sjau

    sjau Local Meanie Moderator

    You can do it with PHP if know that... look at the exec function there.
     
  3. Turophile

    Turophile New Member

    Which ftp program is it? Does it only allow local users or can it use MySQL (or another database) as a backend? If it can use another database as a backend, PHP is quite simple and doesn't require exec. However, if it uses local users you might want to reconsider the program in use.
     
  4. pushparaj

    pushparaj New Member

    Hi,
    It is using mysql as back end. It does not require local users.

    Thanks
    Pushparaj.
     
  5. falko

    falko Super Moderator ISPConfig Developer

Share This Page