Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
    
Indeed the url was infact /uploader but when setting the permissions nothing was fixed..i decided to try the apache way and see if i can overrun this problem..thank you anyway my friend –  TonalDev Jan 1 '13 at 21:16

the "not so secure" way of doing things would be to right click on the folder (uploads) then go properties -> security -> add "everyone" and give it read / write

better way is to add a user IIS_USR to it instead.. way more secure.. but meh.. if you want 777 then you obviously not too stuck up on security. i use everyone for my dev machine

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.