File Permissions

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/10/2012 10:08:32 AM
Gravatar
Total Posts 148

File Permissions

Hi:

I want Administrators to be able to read and write to a certain directory.  When I check the permissions on the folder, I see that Administrators have full access. Yet, when I'm logged into the site as an Administrator, my access is denied. The only way to give me access is to set the permissions for Users to Full Control. But, I don't want to give everyone Full Control.

 


I checked the Application Pool for my site and found it to be ApplicationPoolIdentity but I can't find that Group or user Name when I try to set the permissions. I even searched for it and it can't be found.

But, I'm really confused on why I have file permissions for Administrators set to Full Control, and I'm still denied access.

9/10/2012 10:31:35 AM
Gravatar
Total Posts 18439

Re: File Permissions

You are confusing mojoPortal users with Windows users.

mojoPortal has no control over file system permissions, that is a feature of Windows and applies to Windows users.

The ApplicationPool runs as a Windows user and it is the same no matter who is visiting the web site no matter if the user is anonymous or signed into the site as a user with admins role. So you cannot really manage windows file system permissions per mojoPortal user account since from Windows point of view it is always the same Windows user that the app pool and web site code  is running as.

The Windows user that is the identity on the applicaiton pool must have read permission for all the web site and must have full control on /Data and /App_Data folders for mojoPortal to work correctly.

In older verisons of Windows and IIS the Network Service user was often used as the user that is the identity of the application pool, and you could assign that user as the app pool identity if you wanted to make things a little simpler.

In newer verisons of IIS they introduced virtual users and the ApplicationPoolIdentity, you can learn more about that from this article and some googling.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.