homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

shopping for an FTP server

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

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?

- 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)

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)


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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved