There is a Win2k box with IIS, and
a bunch of users connecting through FTP and
putting their web site's files to their folders.

Every user has a disk quota assigned to him through Quota Manager.
And it works perfectly if he uses only ftp to create files.
But! If he creates files through Active Server Pages (ASP),
they are owned by anonymous user:

<% @language="jscript" %>
Creating file in:
<%= Server.MapPath("/") %>
<%
var fso = Server.CreateObject("Scripting.FileSystemObject");
var file = fso.OpenTextFile(Server.MapPath("/") + "\\temp.txt", 2, true);
for (var i=0; i < 1024*20; i++) {
file.WriteLine("11111111111111111111111111111111111111");}
file.Close();
%> Done!

It means, that it is not measured by a quota manager for a proper site user.
But if ASP writes to an existing file, created throught FTP,
it's ok, 'cause file is owned by a proper user.

So, in some way, we should allow anonymous user to
modify existing files, but not to create new ones.

One of the solutions would be to make default disk quota as small as
possible, and do not assign any for anonymous users. But the
lower limit of disk quota is 1K, so they still can create 1K files without
being processed by quota management.

Any better solutions?

Thanks,

Igor Kusakov