Can I make a folder writeable in Medium trust?
Posted
by harpo
on Stack Overflow
See other posts from Stack Overflow
or by harpo
Published on 2008-10-20T18:38:43Z
Indexed on
2010/03/16
5:26 UTC
Read the original article
Hit count: 365
My web app writes to several folders (logs, uploads, etc), and I've always set these permissions manually through my hosting provider.
I'd like to create a setup script that performs this on new installations. Is this possible under Medium trust?
I can't even call File.GetAccessControl, let alone File.SetAccessControl, but I don't need such a "big hammer", anyway. I just want to do what the ISP (in this case GoDaddy) is letting me do through a management console.
I believe PHP is able to do this, and I'd be willing to consider a PHP page for this purpose if that's possible.
© Stack Overflow or respective owner