setting up an ftp account wich can upload but not read?

BartHuis

New member
Joined
May 12, 2005
Messages
3
Hi,

My father has an company where costumers have to deliver large files. Some people don't have good mail accounts, so they cant mail it. I also have an upload form, but that's not very good working with large files because of the Apache time out of 5 minutes.

Now we have a plan to set up ftp delivery, but i can't make the right settings.

- The best thing is that when a customer visits the ftp, that he can not see the files which are online at that moment, but that he can only upload files.
- If that is not possible, i want the settings so that costumers can only see the file names of others, and upload, but that they can not download / open the files of other costumers.

Of course the people at the company deletes each file directly after downloading, but we would only set this because of the possibility that 2 costumers upload files at the same time, that they may not download the file of other costumers.

So could someone help me setting up the 1st option, or when that is not possible, to set up the 2nd?

What i have done:
created an user with the setting:

User: Ftp account with the root directory as the users name in the public_html directory

when i look at my ftp program i see that an folder is added to the public_html folder.
i have tried to make settings by myself to go to the folder properties and set the permissions so that the user can not read and execute, but only write. that did not work, because you could not anymore enter the ftp folder than.

We have thought about making 10 ftp accounts, and when a costumer ask for it, the employee an give away one account, but we think the plan above is more simple for the employees.

Thanks a lot for who can help us!

Bart Huisman
 
I would also be very interested in making this work. The other problem I don't think you mentioned is that the FTP user you create should have access only to a non-web directory, so those file aren't accessible via the web (this would defeat the whole purpose of this setup).

From the DA interface I don't see a way to set this up... do any veteran users have any ideas?
 
You can certainly create an ftp directory inside the user's root directory but not inside the public_html directory.

By default anonymous ftp is designed so that users can upload ONLY to an upload directory, where the files can't be seen after they're uploaded (for security reasons, so anonymous ftp can't be used for illegal uploads/downloads) and then an administrator must log in through the command line or DirectAdmin files service to move files to a specific directory where it can be downloaded for the proper user.

FTP really can't do the other things you'd like because DirectAdmin uses virtual users. You can manually set up ftp-only accounts from the command line as root, and create custom user/group configurations to do exactly what you want, and there are How-Tos on the 'net, but it's not easily built-in to a shared hosting environment.

Jeff
 
Back
Top