IIS 5 & IIS 6
uploaded images get wrong permissions on mediawiki
Last post Feb 18, 2009 08:44 AM by tomkmvp
Feb 18, 2009 04:25 AM|Rupertt|LINK
I have a mediawiki installation running on an IIS(Windows Server 2003).
We use NTLM Authentification as a login for our AD Users.
after an user uploaded a new image to the wiki all the other users that access the page
get prompted with an login.
When I look onto the filesystem,in the folder where the images are, all the folders have the right ownership (DOMAIN\IUSR_hostname), but the file itself only belongs to the user who uploaded the file.
How can I get IIS/mediawiki to set the right ownership to newly uploaded files?
Feb 18, 2009 06:15 AM|Paul Lynch|LINK
From what I can tell this appears to be working correctly.
The issue doesn't appear to be one of file ownership. If you require your users to authenticate to your Mediawiki application then their browsers will present their NTLM credentials when requesting any files from your images folder.
Now, you say that you have granted the IUSR_ account permission to the folder but if the users' browsers have already authenticated using NTLM then it is the users themselves not the IUSR_ account who need access to the filesystem.
Feb 18, 2009 06:45 AM|Rupertt|LINK
but when I manually give the uploaded file the ownership to IUSER_hostname than all the
Users can access that file. So is there a way to automtically change the user on an uploaded file, or change the user while uploading?
Feb 18, 2009 08:14 AM|Paul Lynch|LINK
This sounds like an NTFS inheritance problem. If the parent folder allows the IUSR_ account read access then any files created in that folder should also allow read access to that account.
HOW TO: Control NTFS Permissions Inheritance in Windows
Feb 18, 2009 08:44 AM|tomkmvp|LINK
Since this is third-party, did you follow-up with their support?