IIS 8 folder url and permissions

iispermissionsweb-serverwindows-server-2012

I am fairly new to IIS coming from simple old apache.

I am trying to figure out how to grant 777 permissions on a website i added in IIS. i need 777 permissions for that folder because its a php uploader and needs those permissions to write the uploaded file. i tried giving IIS Users full access but it just wont work..and when checking that folder in a ftp program it says 755. cant change it from there either..

Also. if that folder is in

inetpub/wwwroot/uploader

How can i set it so the url would be:

www.mysite.com/uploader

Right now its just showing up when launching

www.mysite.com

I am using IIS8 on Windows Server 2012 with root access of course.

Any thoughts on this?

Best Answer

There is no such thing as 777 permissions on Windows. You set access to a resource by adding Access Control Entries (ACEs) to Access Control Lists (ACLs).

Assuming you are using the defaults for IIS8, you can grant write permission to the directory like this:

icacls.exe "C:\inetpub\wwwroot\uploader" /t /grant "IIS AppPool\DefaultAppPool:(OI)(CI)(M)"

The IIS application pool runs under the "IIS AppPool\DefaultAppPool" account, so you want to give it Modify permissions.

C:\inetpub\wwwroot\ should be you site root, so 'uploader' should be accessible via 'www.mysite.com/uploader'. If not check the settings of your site.