a little OT

  • Thread starter Thread starter chris leeds
  • Start date Start date
C

chris leeds

I'm trying to work on an application (asp/ access/ etc) locally on an IIS
5.1 because it is too big to put on the real server and work on live. The
db takes too long to work on in both directions and it's a waste of time and
resources.
My problem is that there is an upload script to upload pictures to a
directory. It keeps telling me in an error message that the directory
doesn't exist or that it doesn't have permissions.
I'm sure it both exists and has "write" permissions. I right clicked the
directory from the IIS control panel and set it to write, I then did the
main folder the same way and when I checked it seems that all the folders
have write permission which is fine for local tests but this script insists
on giving me an error.
Is there something that I should know about setting permissions?
It's windows xp pro with IIS 5.1, the upload script is pureupload (an asp
script)

TIA
 
IIS permissions are not file system permissions. To write a file to disk,
the IUSER anonymous Internet user account must have write permission for the
folder that the files will be written to.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.
 
Again, chris, it has NOTHING to do with the web server. It is a file
permission, which means that you would do it via Windows Explorer or My
Computer.

--
HTH,

Kevin Spencer
..Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things
 
I see! even though iis thinks it's "writable" the OS doesn't. I'll have to
try it. I learned, by having my server admin mark the folder, that the
problem was definitely mine because the uploader worked fine on the
production server.
Thanks for the follow-up.
btw the automark site is impressive.
 
I did like you said, went with windows explorer and removed the read only
attribute. go back to the page on the local server and try the upload.
failure. everything looks cool with iis permissions so I go back to windows
explorer and the folder is marked read only again! I've repeated the
process (like the directions on shampoo) and it is always this way. what
could this possibly be?
 
Chris,
You don't remove the Read Only attribute, you add Write permissions.
In Windows Explorer:

right click the folder
Choose Properties
Choose the Security tag [1]
Click on the IUSR_yourmachinename user
Tick the Modify box in the Allow column - this will also set the Write box.
(you need Modify as well as Write since you are creating files)
Click Apply
Click on the Advanced Button
Tick the Inherit from parent.... and the Replace permission entries....
checkboxes - this applies the permissions to the _vti_cnf folder as well,
though may not be necessary.
Click apply
Click OK
Click OK

This procedure may also be done from FP2003 (maybe FP2002?) if you have full
Admin rights for the Web on the server:
In FP2003 Right click the folder
Choose properties
Untick Allow Scripts to be run
Untick Allow programs to be run
Tick Allow anonymous upload
Tick Allow Uploaded files to overwrite existing filenames
Click Apply or OK

HTH
Ron
 
True. However, if chris is using Windows XP and his computer is not part of
a network, the Security tab will not show up in Folder Properties, until the
fillowing steps are taken:

Open Foler Options in Control Panel. Go to the View tab, all the way at the
bottom. Uncheck "Use Simple File Sharing."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

Ronx said:
Chris,
You don't remove the Read Only attribute, you add Write permissions.
In Windows Explorer:

right click the folder
Choose Properties
Choose the Security tag [1]
Click on the IUSR_yourmachinename user
Tick the Modify box in the Allow column - this will also set the Write box.
(you need Modify as well as Write since you are creating files)
Click Apply
Click on the Advanced Button
Tick the Inherit from parent.... and the Replace permission entries....
checkboxes - this applies the permissions to the _vti_cnf folder as well,
though may not be necessary.
Click apply
Click OK
Click OK

This procedure may also be done from FP2003 (maybe FP2002?) if you have full
Admin rights for the Web on the server:
In FP2003 Right click the folder
Choose properties
Untick Allow Scripts to be run
Untick Allow programs to be run
Tick Allow anonymous upload
Tick Allow Uploaded files to overwrite existing filenames
Click Apply or OK

HTH
Ron
--
Reply only to group - all emails will be deleted unread.


chris leeds said:
I did like you said, went with windows explorer and removed the read only
attribute. go back to the page on the local server and try the upload.
failure. everything looks cool with iis permissions so I go back to windows
explorer and the folder is marked read only again! I've repeated the
process (like the directions on shampoo) and it is always this way. what
could this possibly be?

permission
for on
an
to
a then
did pureupload
(an
 
I got it. the directions weren't exactly as Ronx said. I figured it was
because I have a different OS. it's just a check box on the sharing tab
that says "allow others to change my files".
Now the uploader works locally. I've really got my work cut out for me
trying to tame and unscumb this pre-made app. there should be a law against
selling sloppy work!

Kevin Spencer said:
True. However, if chris is using Windows XP and his computer is not part of
a network, the Security tab will not show up in Folder Properties, until the
fillowing steps are taken:

Open Foler Options in Control Panel. Go to the View tab, all the way at the
bottom. Uncheck "Use Simple File Sharing."

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

Ronx said:
Chris,
You don't remove the Read Only attribute, you add Write permissions.
In Windows Explorer:

right click the folder
Choose Properties
Choose the Security tag [1]
Click on the IUSR_yourmachinename user
Tick the Modify box in the Allow column - this will also set the Write box.
(you need Modify as well as Write since you are creating files)
Click Apply
Click on the Advanced Button
Tick the Inherit from parent.... and the Replace permission entries....
checkboxes - this applies the permissions to the _vti_cnf folder as well,
though may not be necessary.
Click apply
Click OK
Click OK

This procedure may also be done from FP2003 (maybe FP2002?) if you have full
Admin rights for the Web on the server:
In FP2003 Right click the folder
Choose properties
Untick Allow Scripts to be run
Untick Allow programs to be run
Tick Allow anonymous upload
Tick Allow Uploaded files to overwrite existing filenames
Click Apply or OK

HTH
Ron
--
Reply only to group - all emails will be deleted unread.


chris leeds said:
I did like you said, went with windows explorer and removed the read only
attribute. go back to the page on the local server and try the upload.
failure. everything looks cool with iis permissions so I go back to windows
explorer and the folder is marked read only again! I've repeated the
process (like the directions on shampoo) and it is always this way. what
could this possibly be?

Again, chris, it has NOTHING to do with the web server. It is a file
permission, which means that you would do it via Windows Explorer or My
Computer.

--
HTH,

Kevin Spencer
.Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

could you tell me how to do this on my local server (IIS 5.1)

IIS permissions are not file system permissions. To write a file to
disk,
the IUSER anonymous Internet user account must have write permission
for
the
folder that the files will be written to.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

I'm trying to work on an application (asp/ access/ etc)
locally
on waste
of
pictures
 
Back
Top