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.

I'm actually a programmer and I'm currently developing a web application where one of it's demands is to create an ftp folder and user when a new user registers with the web app. So a newly registered user can upload stuff in his/her own ftp folder. Those uploaded files get read by the web app, etc.

For the obvious security reasons I don't want to create shell users but ftp users only.

I came across the info to simply create the user with useradd and setting its shell to /bin/false, what ispCP actually does when you create an ftp user in the admin interface. But what I simply couldn't find out is where ispCP actually stores its FTP users. If I do a simple cat /etc/passwd I don't see the users that I can see in the ispCP admin panel, except for the common user with the name ftp.

So I was wondering if there's a certain place I need to look into to see the users that were created over the ispCP admin panel. I need to integrate my app into the system, so I though of mirroring the process that ispCP does. I unfortunately can't ditch it because other things are running on the server...

The system specs are:

  • ispCP 1.0.5 OMEGA
  • ProFTPD Version 1.3.2

PS: I couldn't tag it with ispcp due to my low reputation...

share|improve this question

closed as off topic by mdpc, Dave M, dunxd, Lucas Kauffman, Michael Hampton Jan 24 '13 at 22:12

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer 1

up vote 0 down vote accepted

Proftpd can be configured to look at a database for accounts. Do that, and then build yourself an app that inserts records into the database.

share|improve this answer
    
Thank you! This was driving me mad :) –  Vapire Jan 24 '13 at 19:26
add comment

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