Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hey I am looking for an FTPD that I can run on ubuntu 10.04 that I can automate user creation and deletion via php scripts. I also need to be able to point the users to a specific ftp directory instead of just their home. I have looked into Proftpd and vsftpd but after the basic docs I am not really finding what I need.

Thank you guys

share|improve this question

closed as not constructive by Chris S Mar 25 '13 at 13:24

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Shopping Questions are Off-Topic on any of the Stack Exchange sites. See Q&A is hard, lets go Shopping and the FAQ for more details. –  Chris S Mar 25 '13 at 13:24
add comment

2 Answers

up vote 2 down vote accepted

Using Proftpd for this is really easy since proftpd can use Mysql as a source for authentication, and manipulating a database in PHP is trivial. Check out the Proftpd SQL mini-howto. Ignore the section about how to compile, just install the proftpd-mod-mysql or proftpd-mod-pgsql package.

share|improve this answer
    
Can you point all users of proftpd to a specific directory, Currently all users I have point to their own ~/ –  austinbv Nov 15 '10 at 21:53
    
If you are using the SQL backend you can point the user at any directory you like. Just set the value of the 'home' field to the directory you want them to access –  Zoredache Nov 16 '10 at 1:09
add comment

This sounds like an XY problem.

If you want visitors to a PHP site to be able to register and then upload and download files, I would do the whole job in PHP without involving FTP. PHP can support file upload and download over HTTP. It can also create directories per registered user if that is what is required or it can track ownership internally (in terms of registered user) regardless of the Linux ownership of the file.

share|improve this answer
    
-1, their may be a legitimation reason for ftp. Perhaps he requires compatibility with some client/program that only supports ftp. Perhaps he doesn't want to expend the lots of time it will take to replicate FTP-like behavior with a PHP application. It seems kind of silly to reinvent a file transfer program in PHP when they already exist. –  Zoredache Nov 15 '10 at 18:28
    
+1 for proposing a well reasoned alternative. Although the question asks about ftp servers, the use-case described does not necessarily require ftp, and it may help the OP to learn about alternatives. –  Steven Monday Nov 15 '10 at 21:29
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.