Welcome to WebmasterWorld Guest from 184.73.126.70

Forum Moderators: bakedjake

Message Too Old, No Replies

shopping for an FTP server

   
5:26 pm on Apr 7, 2011 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I like vsftpd, and I have it set up already with pam-mysql authentication. I need an FTP client that will allow me to create & destroy FTP accounts with ease, even manipulating those accounts in realtime with PHP.

vsftpd lets me do all that.

but vsftpd has one HUGE deficiency: there's no way for me to limit the size of a folder, to prevent users from filling my server to the brim. All I really want is to be able to cap uploads to < 1Gb total.

Is there a better FTP program I should try?

needs:
- must be able to hook it into mysql for authentication
- easy creation & destruction of accounts
- size limit
- lots of options for meticulous fine-tuning
12:45 am on Apr 8, 2011 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



research research...
so far most of the advice I've found on the interweb involves making new Linux users, and using "quota".

But maybe this is an option: Mount the directory as a virtual file system, with its own size limit. Then with vsftpd I allow someone read/write access to it.

These are the instructions:


* Make a mount point

mkdir -p /mnt/quotadir

* Create an image file for the virtual file system

dd if=/dev/zero of=/mnt/quota.img bs=1024 count=100000

* Format the drive

mkfs.ext3 /mnt/quota.img

* Mount the drive

mount -o loop /mnt/quota.img /mnt/quotadir

* A permanent fstab entry would be

/mnt/quota.img /mnt/quota ext3 loop 1 2
source [schmut.com]

Mounting and formatting is way beyond my comfort zone. Does this mean that each folder will have 100000b allocated, empty, whether there's anything in it or not? If so, that's not quite what I was hoping for...
3:18 am on Apr 8, 2011 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



hey!

great news. I found Pure-Ftp. It does everything I need. It has built-in support for virtual users, mysql authentication, automatic folder creation, and quotas. Since all the account information is kept in a mysql database, it's simple for my web app to create & destroy accounts as needed. It was easy to install, configuration is a piece of cake.

it's got some other killer features, like chrooting everyone, banning chmod, etc.

'zactly what I was looking for.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month