0

I create FTP users with a php script. I would like to give my users unique FTP folders. However I would like to limit the folders sizes to 1024MB/folder. How can I limit a folder size?

I use proftp with i-mscp. I create SQL rows for my FTP users.

2 Answers2

2

Linux supports quotas for any applications which use the OS user for authentication / session / authorization. Googling for 'Linux quotas' turns up lots of good tutorials in the first page of matches.

And the good thing about using proper OS users / OS quotas is that you can continue to maintain the upload / storage functionality while you provide other methods of managing files and phase out FTP which is a dangerous and stupid protocol that belongs in the past.

symcbean
  • 23,767
  • 2
  • 38
  • 58
1

Setting FTP quotas with ProFTPd. You should be able to work it out from there.

Tom O'Connor
  • 27,578