|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
iis permissions
Hi,
My cms script reads usernames from a file above the www. The script works fine on a unix server. The same script run on an IIS server, with the paths modified, returns 'permission denied'. The ISP insists the permissions were set to full permission when the front page extensions were turned off. However, when I rt click on a file, the dialog box says 'This Server Does Not Support Changing Permissions'. I tried altering the filepath from relative to absolute, but same result. Any ideas? Thanks, Andy |
|
#2
|
|||
|
|||
|
If the file is outside the web, you must grant the IIS user account permission to the file, and you won't be able to get to the file by a url, you'll need to use the filesystem object or something.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Doug,
Thanks for the response. I ran out of ideas and emailed the ISP help desk. I have a strange issue with front page extensions having been set for this account, then 'turned off'. The permissions were set to 777. The functions is_writeable() and is_readable() both return true. The function fopen($file, 'r') lets me read a file. Any fopen($file,'(anything but 'r')') creates an error 'Permission Denied'. I hope the ISP has seen this before. They have been holding my request for two days without an answer. Funny thing, I have several other PHP scripts in this account that function as designed. The difference is that none of them use any file functions. Andy |
|
#4
|
|||
|
|||
|
The first problem is there are no 777 permissions on a windows/IIS server. Permissions in NTFS are set via ACL's that can be different per user and per group.
IIS runs under a built-in user account for anonymous web users or impersonates the logged-in user if your site forces authentication. Any or all these user accounts must be granted permissions to any files you want to use in your web code. |
|
#5
|
|||
|
|||
|
Hi Doug,
Thanks for the info. So far, one direct phone call and three emails to the ISP and it continues to be a work in process. They admit the problem is on their end and are working to resolve the issue. Andy ps: That igrep toolbar is a workhorse. Have you looked at it yet? |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > iis permissions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|