PDA

View Full Version : Working with IIS


lee
December 14th 03, 01:29 AM
I have a problem with the wwwroot folders and all
included in them. I am trying to update a database
withing these folders, but cannot change the read only
seeting in properties to read/write. It stays on read
only, allowing me to only view elements in my database
not update them.

Cheers lee

Roger Abell [MVP]
December 14th 03, 01:29 AM
The read-only attribute has nothing to do with it
(well, at least once you have made sure it was cleared).

The read-only checkbox is only the actual read-only attribute
setting on files; on directories it is a switch used to modify
the attribute on contained files. After it is used it is returned
to the intermediate display state.

Your issue has to do with
1. NTFS permissions
2. the Write checkbox within IIS mgmt UI

You should locate the database within a directory of its own,
then in IIS in the properties of this folder indicate that script
and execute is not allowed (none) and that write is allowed.
Then, at the NTFS level you need to grant modify for subfolders
and files within this directory and read/exec for the directory
itself. This grant needs to allow these permissions for the
accounts that IIS will be using, and this depends on what level
of process isolation the web app is set to use and on whether
or not anonymous access is allowed.

--
Roger

"lee" > wrote in message
...
> I have a problem with the wwwroot folders and all
> included in them. I am trying to update a database
> withing these folders, but cannot change the read only
> seeting in properties to read/write. It stays on read
> only, allowing me to only view elements in my database
> not update them.
>
> Cheers lee

Google