Author: Drew Tomlinson
Date: 26-02-02 21:32
Thank you for your article. I used it to successfully set up an anonymous ftp server with disk quotas to limit the size of the incoming directory instead of creating a separate partition for it. I was a little confused on how to do this but with some help from -questions, I realized that I needed to mount the filesystem SUIDDIR and set the suiddir bit on the incoming directory. In my case, I set nobody as the owner of incoming and set quotas on the filesystem for nobody. All files available for downloading will be owned by ftp. Now when the ftp user uploads to incoming, suiddir will change ownership from ftp to nobody, enforcing my quotas. I just have to be sure that nobody does not own files that are outside of incoming or else those files will be counted toward nobody's quota.
I had a 4GB drive to dedicate to ftp, so I mounted the drive at /ftp. As the article suggests, I created /ftp/etc, /ftp/pub, and /ftp/incoming. Because I am using disk quotas, there is a /ftp/quota.user file. I would like to know if there is a way to completely hide this file.