Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Re: reading a windows network directory using a cgi script

Expand Messages
  • Jenda Krynicky
    From: roish1973 ... Depends on your web server. If you are running MS IIS then the scripts are most likely being run under the
    Message 1 of 5 , May 4 9:51 AM
    • 0 Attachment
      From: "roish1973" <roi__@...>
      > Hi. thanks for your help.
      > what i'm tring to do is to read a directory of a network server, and
      > select one of the folder files.
      >
      > the error i'm getting while trying to open the directory is:
      > cant open directory [directory path], no such fileor directory.
      >
      > jenda wrote:
      > a user that cannot access the admin share, quite likely the account
      > cannot access any network share at all.
      >
      > is there any way to fool the perl script, set different values to
      > the ENV varables or what ever, to enable reading the directory ?

      Depends on your web server. If you are running MS IIS then the
      scripts are most likely being run under the IUSR_machinename account.
      You may change this in the "Internet Services Manager" (or Computer
      Management\Services and Applications\Internet Information Services)

      The scripts should NEVER be run under an administrator account!

      In this case you will most probably need to create a new network
      account (with as small permissions as possible), change the account
      used for the Anonymous access for the website or directory, create a
      share on the server storing the files and give this user read (and
      modify if really necessary) permissions to the share and the files.


      It might still be best to have the files copied onto the webserver
      and accessed localy.

      Jenda
      ===== Jenda@... === http://Jenda.Krynicky.cz =====
      When it comes to wine, women and song, wizards are allowed
      to get drunk and croon as much as they like.
      -- Terry Pratchett in Sourcery
    Your message has been successfully submitted and would be delivered to recipients shortly.