Hi,

I am trying to set up a folder under my "My Documents" folder, called say
MyWWWRoot, as a relocated web root directory under IIS 5.1 (Windows XP
Pro). Using the IIS management console I created a new Virtual Directory
under the Default Web Site node pointing to this folder. I kept the default
permissions offered by the wizard. Later I clicked on the Web Sharing tab of
the properties sheet of MyWWWRoot folder and clicked the "Share This Folder"
radio button. I did not allow other users of the compter to share the
folder, only web users. However when I enter in the web browser the URL of a
web page under this directory, using "localhost" and the appropriate alias,
I get the error message "You are not authorized to view this page".

Can anyone help with the following questions:

1. What more needs to be done to allow the folder to be viewed by web users?

2. In the IIS management console, whilst the IISHelp node in the tree view
may be expanded to reveal its subdirectories, the tree node representing my
virtual directory cannot be expanded to show its sub folders, which can only
be seen by clicking Explore in the context menu. Why is this?

Many thanks in advance.

Regards

Enquiring Mind

Re: Permissions for IIS virtual directory by Consultant

Consultant
Fri Feb 23 09:07:39 CST 2007

try this
http://www.microsoft.com/downloads/details.aspx?FamilyID=e90fe777-4a21-4066-bd22-b931f7572e9a&DisplayLang=en


"Enquiring Mind" <Enquiring.Mind@nospam.btopenworld.com> wrote in message
news:%23W84Is0VHHA.3652@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> I am trying to set up a folder under my "My Documents" folder, called say
> MyWWWRoot, as a relocated web root directory under IIS 5.1 (Windows XP
> Pro). Using the IIS management console I created a new Virtual Directory
> under the Default Web Site node pointing to this folder. I kept the
> default permissions offered by the wizard. Later I clicked on the Web
> Sharing tab of the properties sheet of MyWWWRoot folder and clicked the
> "Share This Folder" radio button. I did not allow other users of the
> compter to share the folder, only web users. However when I enter in the
> web browser the URL of a web page under this directory, using "localhost"
> and the appropriate alias, I get the error message "You are not authorized
> to view this page".
>
> Can anyone help with the following questions:
>
> 1. What more needs to be done to allow the folder to be viewed by web
> users?
>
> 2. In the IIS management console, whilst the IISHelp node in the tree view
> may be expanded to reveal its subdirectories, the tree node representing
> my virtual directory cannot be expanded to show its sub folders, which can
> only be seen by clicking Explore in the context menu. Why is this?
>
> Many thanks in advance.
>
> Regards
>
> Enquiring Mind
>
>



Re: Permissions for IIS virtual directory by Enquiring

Enquiring
Sat Feb 24 05:26:27 CST 2007

Hi,

Many thanks for the pointer! I will download the tool if all else fails.
However rather than use a piece of software to diagnose the problem, I would
prefer to understand the problem and then solve it myself.

I reckon the problem must have something to do with the way permissions work
in the NTFS. To investigate the problem I moved the directory that I wish to
make a virtual web root directory from my personal "My Documents" directory
to the "Shared Documents" directory, and reset the virtual directory path
accordingly. I made no changes to the permissions set up for the directory
by the Virtual Directory wizard that I launched from the IIS management
console. Having done this, the pages in the virtual web root directory can
be visited without problem from Internet Explorer.

Therefore the problem seems to be connected to how the permissions set up
specifically for a sub-directory of "My Documents" directory interact with
those assigned by the system to the "My Documents" directory. I was vaguely
aware that the default permissions on the subdirectory are the same as those
of the parent directory, assuming that that's what "permissions inheritance"
means. However I also naively thought that if the permissions are reset for
a directory, they override any permissions of its parent directories.
However the behaviour of the sub directory that I tried to set up a virtual
web root directory seems to suggest that inspite of the directory having the
right permissions for web sharing, the permissions of the parent directory,
i.e. the "My Documents" directory, is getting in the way.

My questions therefore are:

If I have a directory C:\Dir1\Dir2\Dir3, and each directory in the chain has
possibly different permissions set, how are the permissions applied? Do the
permissions set for directory Dir3 apply to Dir3 irrespective of the
permissions set for Dir1 and Dir2? Or when an attempt is made to access
C:\Dir1\Dir2\Dir3\SomeFile.html, are the permissions checked sequentially
first on Dir1, then if successful on Dir2, and again if successful on Dir3,
meaning that the permissions of Dir1 must be satisfied globally by any
directory or file within it, irrespective of any local file or directory
settings?

If the latter is the case, any permissions applied to Dir3 will only govern
if they are more restrictive than the permissions of any parent directory.
Therefore, if I want to make Dir3 a virtual web root directory, I would have
to apply the web sharing permissions to Dir1 and Dir2 as well. Is that
correct?

Any guidance would be much appreciated.

Enquiring Mind



"Consultant" <consultant_mcngp@yahoo.com> wrote in message
news:esX4cx1VHHA.1360@TK2MSFTNGP02.phx.gbl...
> try this
> http://www.microsoft.com/downloads/details.aspx?FamilyID=e90fe777-4a21-4066-bd22-b931f7572e9a&DisplayLang=en
>