I have an asp.net application on IIS 7 and Windows Server 2008. I have a folder where the administrator can upload mp3s through a asp.net form. The folder that the mp3s are stored has permissions under IIS_IUSRS (IIS USERS) to write, read, etc. When he upload a file, automatically the new file loses all the permissions and consequently this mp3 cannot be played by the website either from an authenticated user nor from an anonymous user. If I change the permissions manually the problem is fixed, but it starts again in a new uploading. Any ideas?
IIS7 problem with IIS_IUSRS permission. Cannot play a mp3 file
iis-7permissions
Related Topic
- IIS7 returns 403.1 (execute access denied) for image file
- Iis – How come when I add IIS_IUSRS RW access to a folder, it doesn’t automatically allow ISUR RW access
- Which built-in account is used for Anonymous Authentication in IIS 7
- Domain Admin Group User Cannot Access Directory – Permission Fix
- Iis – Cannot find “IIS APPPOOL\{application pool name}” user account in Windows Server 2008
Best Answer
Either the upload script is changing the permissions when it saves the file, or the NTFS permissions aren't setting to inherit the permissions correctly.
To rule out (or in) the upload script, try dropping a file in that folder manually (copy, not move) and make sure that it obtains the correct permissions. If it does, then the issue is most likely with the asp.net form.
If the issue happens manually from Windows Explorer too, then check the Advanced NTFS permissions. It's possible that the permissions for the IIS_IUSERS user are set for 'this folder only' and aren't inheriting for new files.