Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

403 forbidden error for non-admin users

  Asked By: Dale Dean         Date: Apr 20, 2008      Category: Sharepoint      Views: 904
 

I am using SmartPart to Load User Controls (.ascx) in a SharePoint
Page. In the code I am trying to access External resources such as File
System. When non-admin users try to the access the page, they are
getting a 403 forbidden error but for admins who have admin privileges
on the Server, they do not get any errors. I tried to use
SPSecurity.RunWithElevatedPrivilges around the code that is accessing
the File system but it didnt work. I tried to even impersonate a super
user who is an admin on the server but of no use. The Impersonated
credentials are not making all the way through.

One of my options is to give the domain users Read access to the Web
folder, I tested this and it is working but I dont know if this is the
right solution.

Tagged:              

 

2 Answers Found

 
Answer #1       Answered By: Tyron Calderon          Answered On: Apr 20, 2008       

This may be the 403  Forbidden issue that has been plaguing me for
some time.
You may want to check the security settings of your bin/ directory of
your webapplication. In my case the local server  group "SERVER\Users"
(which usually contains DOMAIN\Users) had no access  to the bin/
directory. Granting read  rights to the bin/ dir to "SERVER\Users"
seemed to have solved my problem...

 
Answer #2       Answered By: John Mathew          Answered On: May 26, 2010       


your webapplication. In my case the local server  group "SERVER\Users"
(which usually contains DOMAIN\Users) had no access  to the bin/
directory. Granting read  rights to the bin/ dir to "SERVER\Users"
seemed to have solved my problem...

It worked for me

 
Didn't find what you were looking for? Find more on 403 forbidden error for non-admin users Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].