views:

192

answers:

2

I've created a web site (virtual directory) in IIS7.

Now for some reason 1 folder I create in the web site, has read only permissions... Doesn't matter what I do, I can't get rid of the read only flag. .

I tried:

  • deleting the folder, recreating it - read only!!!
  • setting permissions to uncheck read only... again it resets itself automatically to read only...

Please help... getting angry :)

+1  A: 

There are so few permissions problems that aren't annoying...

I can only give you advice from a Google search (it appears you're not the only one who's had this problem) that's probably unhelpful, like:

  • try changing the folder permissions to read only via the command line e.g. attrib +R FolderName.
  • look on the Security tab in the Properties window and see what the exact permissions are there, for your logged in user or any of the groups you're in. See if they're set appropriately, and try changing them from there.
  • restart machine

I just hope I haven't enraged you more when this advice doesn't work.

Gavin Schultz-Ohkubo
Not at all , perfectly sound advice, it seems that flag is always set on any folder.
JL
+2  A: 

This is "by design" according to Microsoft. See "You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, or in Windows Vista".

Excerpt:

Unlike the Read-only attribute for a file, the Read-only attribute for a folder is typically ignored by Windows, Windows components and accessories, and other programs. For example, you can delete, rename, and change a folder with the Read-only attribute by using Windows Explorer. The Read-only and System attributes is only used by Windows Explorer to determine whether the folder is a special folder, such as a system folder that has its view customized by Windows (for example, My Documents, Favorites, Fonts, Downloaded Program Files), or a folder that you customized by using the Customize tab of the folder's Properties dialog box. As a result, Windows Explorer does not allow you to view or change the Read-only or System attributes of folders.

See link for full details.

Mr. Smith
Wow, that's totally weird. I thought I would have noticed this "feature" before now. +1 to you @Sequ3L because you found the proper reason for this behaviour.
Gavin Schultz-Ohkubo