-
October 23rd, 2004, 02:08 AM
#1
Junior Member
Today I found an equivalent DOS command to the unix CHMOD which fixed the problem. It is CACLS which is used to control the Access Control List (ACLs) for files.
Open a DOS window, navigate to the directory that contains 'test.txt':
I typed in -
>cacls test.txt
I got -
"C:/ .... test.txt Everyone:R BUILTIN\Administrators:F "
then type in
>cacls test.txt /E /G IUSR_DEV:F <--- Don't forget the /E !!!!
To check, I typed in again
>cacls test.txt
I got
"cacls test.txt DEV\IUSR_DEV:F"
You may get more results because your ACL may be different - different users, permissions etc.
re-run the original script without the URL and it works as it should. I believe that while IIS is supposed to control r/w on the file as it reports to be doing, in fact it does not do a proper job.
Cacls has other options and you can get these by typing "cacls" at a command prompt, but the 'C' is modify or Change permission.
Note that my webserver is on machine 'DEV" so just replace your machine name. Of course your IIS user account is then IUSR_MACHINENAME.
Last edited by zoggs; October 23rd, 2004 at 12:03 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks