C# file creation - how to grant IUSR DELETE?
问题 I've got a console program written in C# which runs under user foo. The program creates a file. In some situations a web application running under the IUSR needs to be able to delete the files created by the console app. I'd like to grant DELETE (or anything equivalent) to IUSR when the file is created. How can I do that in C# ? I've found FileIOPermission and I'm not sure what that's for but as you can't specify a particular user I'm pretty sure that's now what I need. Anyone got a good