Re: IIS - Sub directory permissions
From: Karl Levinson [x y] mvp (jamescagney90210@excite.com)
Date: 11/01/02
- Next message: C S: "impersonation / changing ownership of uploaded files with IIS FTP"
- Previous message: Karl Levinson [x y] mvp: "Re: 401.1 Error w/ Anonymous Access"
- In reply to: Gary Cuthbert: "IIS - Sub directory permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Karl Levinson [x y] mvp" <jamescagney90210@excite.com> Date: Thu, 31 Oct 2002 21:33:42 -0500
"Gary Cuthbert" <gary.cuthbert@virgin.net> wrote in message
news:3dgw9.1362$J45.157253@newsfep1-win.server.ntli.net...
> Hello, has anyone managed to set permissions for a virtual directory
> subdirectory under iis from a vbscript? I have a vbscript that creates
> several virtual directories as part of an installer app (using
> GetObject("IIS://Localhost/w3svc/1/root") and the like).
>
> The msdn documentation suggests that the same process can be used to set
iis
> folder permissions (e.g. write access) for subdirectories under the
virtual
> directory but the call to GetObject with the path to the subdirectory
fails.
>
> The odd thing is that i used the example iss admin vb script 'chaccess'
and
> got the same results however if i load up the control panel 'internet
> information services' app and set the option (write access) there, apply,
> then remove the setting suddenly chaccess works as does my script (hence
> GetObject). Its as if iis only recognises a sub directory once the
Internet
> Services Manager is prompted to do something with it.
>
> Has anyone managed to do this kind of thing from a script? any help or
> advice would be most welcome.
It's a good idea both for troubleshooting and security to enable file and
registry access failure auditing on all files and the HKEY_Local_Machine
registry hive. Then you can see what is going wrong in the Windows security
event log. Search this newsgroup for "auditing" for further instructions.
Also, as you may already know, if these are web scripts [such as .ASP] and
the "application isolation" setting on the folder containing the scripts is
set to Medium or High in the IIS MMC, the IWAM_computername account is being
used instead of the anonymous user account.
I assume you've already read www.iisfaq.com and www.microsoft.com/support,
especially searching for the sections on "minimum NTFS permissions" for IIS
to work.
- Next message: C S: "impersonation / changing ownership of uploaded files with IIS FTP"
- Previous message: Karl Levinson [x y] mvp: "Re: 401.1 Error w/ Anonymous Access"
- In reply to: Gary Cuthbert: "IIS - Sub directory permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|