Web Hosting Talk







View Full Version : Upload only FTP ? pls help


^HD^
12-14-2003, 04:56 PM
i want to create one ftp account with upload only option and one admin account for full access read write del everything. just like a ftp server or something on my dedicated server. its for my customer who has mp3 site and he wants his users to upload stuff to him then he can put them on his site or something like that but he want 2 accounts for same ftp one upload only and one admin acocunt pls help

IF ITS NOT POSSIBLE then any other way to do something like this


help pls
Regards
^HD^

dlzinc
12-14-2003, 05:52 PM
As far as I know, there is no way to do it solely with a control panel (the uploading part).
It can be done using proftpd and an anonymous section.

Create the admin user as a regular user in the control panel or on command line.

In proftpd's config file ...


<Anonymous /path/to/adminuser_homedir/upload>
user uploaduser
group admingroup #(must have write access to upload)

<Directory *>
<Limit READ WRITE>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>


uploaduser has to exist already, you might have to add AllowOverwrite off if you're ftp server is configured to allow overwrites if you want to prevent uploaders from overwriting files.
uploaduser will automagically be chrooted to /path/to/adminusr_homedir/upload

You may also create adminuser and uploaduser with the adminuser_homedir/upload, and uploaduser belonging to adminuser's group with upload set to 730, but that will allow the uploaduser to potentially resume files, overwrite files depending on your server's config.. and make folders (etc etc).. then you wont have to mess with proftpd's config

the upload user wont be able to download or list files in either setup

adminuser's homedir has to have at least g+x

(hope i didnt miss anything)

-dlz