[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 385
  • Last Modified:

Access is denied

Hi,

All of a sudden none of my websites are displaying, they ask for a username and password - I think something might have gone wrong in IIS but I'm not sure how. Would anyone be able to help me work this out?

Thanks.
0
cglew
Asked:
cglew
  • 15
  • 10
  • 6
  • +1
1 Solution
 
Juan_BarreraCommented:
Hi there,

Check on IIS that Anonymous Authentication is enabled for your website.
0
 
cglewAuthor Commented:
Hi,

It says it is but I'm not sure what should be in the username field underneath it.....
0
 
fosiul01Commented:
check the attached picture
it should be something like this
IIS.GIF
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
Juan_BarreraCommented:
Usually, it's IURS_[machinename], but maybe it's not going to let you set the password.
What you can do is to remove and recreate the site, by default it should set the Anonymous User.
0
 
cglewAuthor Commented:
It's currently saying this - really quite stuck as to what user account it should be!
screen.jpg
0
 
Juan_BarreraCommented:
0
 
fosiul01Commented:
check this one please
 right click the On the  file you are trying to open and check the permissions... this is the windows security permissions... see if there is an account named IUSR_TheNameOfYourComputer with permissions to at least read the file.

0
 
fosiul01Commented:
and also,
from browse , change it to the user  from s15..../ISURCrish to  IUSR_Thename ofthecomputer
0
 
cglewAuthor Commented:
There isn't an account with the name of the computer anywhere (as far as I can see).
0
 
fosiul01Commented:
Have you clicked on Find now button then checked ??  .. check the picture
IIS2.GIF
0
 
fosiul01Commented:
one more quick : does it ask user name and password for every brosers ??

IIS , firefox or only just one ??
0
 
cglewAuthor Commented:
Yup, I did that. Nothing came up with the name of the computer in the account name.
0
 
cglewAuthor Commented:
It comes up in both FF and IE.
0
 
fosiul01Commented:
when you click on find button
do you see any user IUSR_chris ??
I guess you see,

if you see that user, then click on that user ,

what is S15311185 ??

0
 
Juan_BarreraCommented:
@cglew:

Can you recreate the site? It will reset the settings, therefore fixing your issue.
0
 
fosiul01Commented:
and also , have you changed any file recently in your web site ??

does it asking for every file in your web server or just perticuler file ??
0
 
cglewAuthor Commented:
S15311185 is the name of the computer. I see the user you mean, however I still does not work when trying to use it.

And what is on the site is a phpBB forum - recreating it could be a real pain! :-(
0
 
cglewAuthor Commented:
It does it wherever I try to go, either to phansonline.net or to phansonline.net/phpBB3/ or phansonline.net/phpBB3/index.php.
0
 
fosiul01Commented:
when i am trying to access your site

its saying access is denyed

is this your problem ??
0
 
Juan_BarreraCommented:
Another thing you can do is to create a new user (any name), make it member of the IIS_WPG group, and, then, set the website's anonymous user to it.
0
 
fosiul01Commented:
this is not Windows problem!!

this is custom error , what made you think , windows is asking for username and password ??
0
 
Juan_BarreraCommented:
Who's saying is a Windows problem???
I'm saying that is an IIS authentication problem, but if it makes you nervous, I can leave the thread and leave you with it, no hard feelings :)
0
 
fosiul01Commented:
Sorry by windows problem, i meant that IIS problem, here IIS is not asking for user name and password,

if you go to his site, , its saying, access is denyed which is custom error messages. if its IIS problem, we should of see a dialog box asking user name and password , but his site is not asking that, unless the php script is modifying this error as Access denyed.



cglew : can you just upload  a plain html file and try to access that html , dont place in in phpbb3 folder. see if you can see that html or not ??

bottom line is : what we are trying to help here on the issue that, IIS is asking for user name, but his site is not asking user name and password



0
 
cglewAuthor Commented:
Let me clarify - when you go to the site, it will ask you for a username and password (as I mentioned in the original question). When you click cancel, it will display the "Access is denied" message. It won't let me view any files on the server, I tried linking to an image I have hosted there and it still gives me the same problem.
0
 
Praveen DMInfra Team LeadCommented:
If you are using Hsphere Control panel to host sites in this winbox here is the first solution.

1. Switch Off / On the Web services in your Hsphere for all sites one by one. ( If any site is working with SSL then never try this option for that site)

2. If your server is a stand alone server then here is another option but time consuming...
i) Select the site that is prompting for login access in IIS property.
Click
*  Directory Security Tab "
* Ananymous Accees and Authentication Control --> Edit <-- Click this Edit
* Click the Password column and reset as per your preference. ( make sure its strong and you know it as you will have to retype the password once again)

Now its done..Access the site

If even aftr the above step the site asks for login

Try this only if the above option fails.

!. Open MMC
2. Select the user ( IUsr_machine} user for the site you reset the password and reset the password here once again.
3. Goto site and chec permission and propagate it once agin from root folder.
4. Once permission tab is over Goto "Owner Tab in permission ( Under Advanced Options" and select the appropriate owner as all there would get reset...

Try this patiently and if you are strugling try some other option...This has been done in a server that poped this problem and the nr of sites were roughly 800


0
 
cglewAuthor Commented:
Tried the above suggestions and it's still not working - is there anybody who'd be able to jumo on the server and have a look?
0
 
fosiul01Commented:
hi yah if you tryed servoadmin all the solution then omm i am not seeing anything.. else

but one thing i realy dont unerstand

you saying, you you goingn to your web site http://www.phansonline.net/, then its asking for username and password

but i tryed from my home and office , but its not asking for username and password, its directly showing access is denyed page
 which agian i am saying, : custom error page

thsi is confusing me ...
0
 
fosiul01Commented:
give me 1 and half hour then i wil check your server if you want
0
 
cglewAuthor Commented:
I would be much obliged - my email is c.glew@gmx.com - if you email me I will give you the details (to save you posting your email here).

Many thanks.
0
 
fosiul01Commented:
i have sent you an email

0
 
Praveen DMInfra Team LeadCommented:
The fix I mentioned is time consuming and should be done one by one for each and every site in server...I have done these fixes alone till now ... If any one has a simple solution plz do share
0
 
fosiul01Commented:
this problem has been sorted as the problem was permission issue of IIS server.
i just had to create IUSr_mechinename and give it proper permission and everything was sorted
0
 
Praveen DMInfra Team LeadCommented:
Gr8..This is manual sol..Hope some one comes with some utomated fix for the complete set of sites...
0
 
fosiul01Commented:
ommmmm, here i just had to set user name for Website [ directory security ] i didnot do anything for rest of the web site it was set automaticaly
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 15
  • 10
  • 6
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now