Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit space on ftp site.

Status
Not open for further replies.

luckydexte

Programmer
Apr 26, 2001
84
US
Hello All,

I am using a Windows 2000 server that is running IIS 5.0. My ftp site is using Windows account to allow access to the site, there is no anonymous access. What I would like to do is limit the size of space each user has. I have set up disk quotas on the drive but when a user uploads a file it does not count as part of his or her disk space. Any ideas on how to limit the space? Thanks in advance.

Brandon
 
The problem that you have here is that you are trying to use the disk quota functionality of Windows for what we all think would be a perfectly acceptable purpose. Disk quota's are filled or counted by how much disk space a particular user is consuming. Lets say you had two folders you wanted to apply quota's to for one user called janeb (who is an actual user in your domain or a local user):

d:\users\janeb
c:\inetpub\web\janeb\ftp

The disk quota would be calcultated across the entire server's disk space and not just these folders. What I am trying to say here is that you can't use disk quotas for your purpose unless you create a user for your ftp access, then create a directory and apply these quotas to that particular user. Do not use any user that you would normally use in your domain or environment because any disk space this user consumes will also be calculated.

Better still, the solution I would use and do use is to create a separate partition on your server and apply this as your ftp area. This addresses two issues for you:
1: You have now applied a quota (they can't use any more space than is in the partition you created) and
2: You are protecting yourself from attacks by placing your ftp directory completely seperate from your operating system and any other vulnerabilities. It is very easy to move your ftp folder to a seperate volume (even put it onto a completely different server and just use your iis as the gateway for the users accesing via ftp. Any problems with how to do that then just let me know.

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top