[thelist] ASP FSO problem.

Rosalie Sennett rsennett at brainlink.com
Sun Dec 19 22:49:16 CST 2004


Correct me if I'm wrong... but IWAM_machine name starts up dllhost.exe

And all .asp, com and other ISAPI extensions are run under dllhost

(ASP is considered an ISAPI extension)

So, perhaps it is the IWAM_machine user that is being locked out?


Keep that in mind when you're poking around with effective permissions 


You also may want to simplify your code just to be sure it isn't some typo
that none of us is noticing... 

I had something the other day that was driving me nuts... and just when I
was sure my machine was haunted... I went back to a kind of "hello world"
script and found that I'd done something stupid... 

So run this with and without a folder specified in the drive, 'cause I know
it works fine.

<table border="1">
<tr>
  <td>Path</td>
  <td>Name</td>
  <td>Size</td>
  <td>DateCreated</td>
  <td>DateLastAccessed</td>
  <td>DateLastModified</td>
</tr>

<% 
Set FSObj=Server.CreateObject("Scripting.FileSystemObject")
Set FolderObj = FSObj.GetFolder ("M:\")

For Each Item in FolderObj.Files %>
  <tr>
    <td><%= Item.Path %></td>
    <td><%= Item.Name %></td>
    <td><%= Item.Size %></td>
    <td><%= Item.DateCreated %></td>
    <td><%= Item.DateLastAccessed %></td>
    <td><%= Item.DateLastModified %></td>
  </tr>
<% Next %>

</table>

<% Response.Write("Total = " & FolderObj.Files.Count)%>

rose

-----------------
c:/dos
c:/dos/run
run/dos/run
>>
-----------------

> -----Original Message-----
> From: thelist-bounces at lists.evolt.org [mailto:thelist-
> bounces at lists.evolt.org] On Behalf Of Ken Schaefer
> Sent: Sunday, December 19, 2004 9:18 PM
> To: thelist at lists.evolt.org
> Subject: RE: [thelist] ASP FSO problem.
> 
> 
> : -----Original Message-----
> : From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org] On
> : Behalf Of cd-ml at aardvark.net.au
> : Subject: RE: [thelist] ASP FSO problem.
> :
> : > What are the permissions on the share that 'M' is mapped to? IUSR
> isn't
> : > part of the everyone group, which can be confusing.
> :
> : Drive M: is a local drive, not a networked share or anything.
> :
> : > Does this behave as expected on local drives? How 'bout if you get the
> : > item's name rather than size?
> :
> : Yes, the item.name works but item.size get's permission denied. I don't
> : know why ?:)
> :
> : Drive M: (which is a local HD) will give me a permission denied, however
> : if I set it to the CD-ROM drive or my USB Key it works. It must be a
> : permission issue somewhere.
> 
> I suppose you next need to check the effective permissions on those files.
> 
> Right-click on a file -> properties -> security -> advanced -> effective
> permissions -> add IUSR_Machinename
> 
> Cheers
> Ken
> --
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !




More information about the thelist mailing list