PHP and FTP Server - Synchronizing users

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ben Holness

    PHP and FTP Server - Synchronizing users

    Hi all,

    I have been asked to build a server that allows people to upload/download
    files to that server via FTP, but they want an web interface to manage the
    files and users.

    I know how to do most of this, but I am not sure how to synchronize the
    PHP and FTP users. The OS will be linux. I get to choose the FTP server.

    For example, a user should be able to login, create a new user, then FTP a
    file to the server as that new user. That file should be readable only by
    that user and his/her parent user(s).

    Any pointers would be appreciated - all of my searches bear lots of
    information about php-ftp, which isn't much help ;)

    Cheers,

    Ben
  • petersprc@gmail.com

    #2
    Re: PHP and FTP Server - Synchronizing users

    It's possible a control panel, like cPanel, DirectAdmin, or Webmin
    would work. You could set up different virtual hosts, each with its own
    set of users.

    Ben Holness wrote:
    Hi all,
    >
    I have been asked to build a server that allows people to upload/download
    files to that server via FTP, but they want an web interface to manage the
    files and users.
    >
    I know how to do most of this, but I am not sure how to synchronize the
    PHP and FTP users. The OS will be linux. I get to choose the FTP server.
    >
    For example, a user should be able to login, create a new user, then FTP a
    file to the server as that new user. That file should be readable only by
    that user and his/her parent user(s).
    >
    Any pointers would be appreciated - all of my searches bear lots of
    information about php-ftp, which isn't much help ;)
    >
    Cheers,
    >
    Ben

    Comment

    • Ben Holness

      #3
      Re: PHP and FTP Server - Synchronizing users

      On Wed, 11 Oct 2006 05:56:34 -0700, petersprc wrote:
      It's possible a control panel, like cPanel, DirectAdmin, or Webmin
      would work. You could set up different virtual hosts, each with its own
      set of users.
      Yes, Webmin would allow me to do it outside of PHP, but ideally I want to
      write php code that would manage the users directly, so that there is just
      one integrated interface.

      Cheers,

      Ben

      Comment

      • adlerweb

        #4
        Re: PHP and FTP Server - Synchronizing users

        If you just want to check the login just try to connect to your ftpd. If
        you want to manage users/... you should consider using a ftpd that can
        handle mysql. Example: Proftpd can store users in a mysql-table.

        Florian

        Ben Holness wrote:
        On Wed, 11 Oct 2006 05:56:34 -0700, petersprc wrote:
        >
        Yes, Webmin would allow me to do it outside of PHP, but ideally I want to
        write php code that would manage the users directly, so that there is just
        one integrated interface.
        >
        Cheers,
        >
        Ben
        >

        Comment

        Working...