Question : IIS 5.0 with NT Auth enables give Access Denied

I'm running IIS 5.0 on a Windows 2000 Server with NT Domain Auth set.  The problem I'm getting is VERY strange.

When you go to the default directory or root it authenticates just fine.  However when you move a directory down, it prompts you for a username and password.  This is not too bad except for the problem is that my scripts call includes a directory down from the default directory.  Hince I keep getting the following errors.

Warning: main(http://xxx.xxx.com/itweb/includes/header-footer.inc.php): failed to open stream: HTTP request failed! HTTP/1.1 401 Access Denied in x:\inetpub\wwwroot\itweb\index.php on line 3

Warning: main(): Failed opening 'http://xxx.xxx.com/itweb/includes/header-footer.inc.php' for inclusion (include_path='.;x:\php4\pear') in x:\inetpub\wwwroot\itweb\index.php on line 3

Warning: main(http://xxx.xxx.com/itweb/includes/functions.inc.php): failed to open stream: HTTP request failed! HTTP/1.1 401 Access Denied in x:\inetpub\wwwroot\itweb\index.php on line 4

Warning: main(): Failed opening 'http://xxx.xxx.com/itweb/includes/functions.inc.php' for inclusion (include_path='.;c:\php4\pear') in x:\inetpub\wwwroot\itweb\index.php on line 4

Fatal error: Call to undefined function: html_header() in c:\inetpub\wwwroot\itweb\index.php on line 5

And as you can see now my functions don't exist because it cannot load my includes.

Any ideas why this is?

Thanks,

Patrick

Answer : IIS 5.0 with NT Auth enables give Access Denied

Either
a) NTFS permissions - in which case simply go to the root, right click choose properties > security then tell it to reset all permissions on child objects
b) YOu have mixed settings in the IIS MMC, go to the root > properties > security > go to the authentication change to something like annonyous only and apply then back to the one you want, this will then propergate down
Random Solutions  
 
programming4us programming4us