Data folder Permissions: Windows Web Server 2008

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
1/13/2010 11:30:04 PM
Gravatar
Total Posts 1

Data folder Permissions: Windows Web Server 2008

Hi Guys,

I've got MojoPortal running on Windows Web Server 2008 and I am having issues with images not being displayed.

From what I can tell it must be a permissions issue.

Can somone please kindly outline exactly what system accounts and their permissions are required for windows server 2008 and IIS7. All other forum entries seem to say just give read/write permissions to ASPNET.

From what I can tell its a NETWORK SERVICE which I have given full permissions, and have also given full perms to SYSTEM. When I apply these the images become accessible, however when I upload new images via file manager the new images are not accessible and appear as broken icons.

Has anyone experienced something similar.

Thanks in advance

Cheers

Peter

1/14/2010 12:37:04 AM
Gravatar
Total Posts 2239

Re: Data folder Permissions: Windows Web Server 2008

I would suggest you read up on Application Pools and Identities. While you could get everything running with built-in accounts, it really isn't recommended (by Microsoft). I located a very good article on IIS.net that will get you going in the right direction. http://learn.iis.net/page.aspx/624/application-pool-identities/

Basically, the Identity of the Application Pool your site is using needs WRITE permissions to the App_Data and Data directories of your website. The above link will explain how to set up the Identity properly.

HTH,
Joe Davis

6/9/2010 7:24:18 AM
Gravatar
Total Posts 4

Re: Data folder Permissions: Windows Web Server 2008

Hi Peter,

I am facing the exact same problem. The problem is that every time an image is uploaded, the ASPNET user is not granted any permissions for that file. Even though I have given ASPNET account full access to the Data folder (and sub-folders and files).

Were you able to resolve this problem? I'm wondering if this is a mojoPortal problem are a problem with Windows Web Server 2008. I will try applying windows updates to see if that helps it.

--Vishwanath

6/9/2010 7:26:16 AM
Gravatar
Total Posts 18439

Re: Data folder Permissions: Windows Web Server 2008

Make the App_Data folder also writable, it will solve this problem.

6/9/2010 8:24:31 AM
Gravatar
Total Posts 4

Re: Data folder Permissions: Windows Web Server 2008

Hi Joe,

 

I gave full access to ASPNET for App_Data as well. Doesn't help. The ASPNET user doesn't appear at all on the file permissions when a new image is uploaded. I have to manually add ASPNET user for that specific file's permissions for the image to appear in the CKeditor or TinyMCE.

Could there be anything else that I could do?

Regards,

Vishwanath

6/9/2010 8:30:41 AM
Gravatar
Total Posts 18439

Re: Data folder Permissions: Windows Web Server 2008

On Windows 2008 it is not the aspnet user who needs permission. You need to look at the identity on the application pool used by the site and give that user permissions on both /Data and /App_Data

What happens is that by default NeatUpload will try to use the App_Data folder for temporary file and then after upload completes it moves the file to the upload destination. If App_Data is not writable then it uses the Windows/temp folder and this is what causes the file permissions to go wrong because that is a protected folder and the file inherits some permissions based on that folder which then makes it fail to be able to use the file.

Hope it helps,

Joe

6/9/2010 8:53:58 AM
Gravatar
Total Posts 4

Re: Data folder Permissions: Windows Web Server 2008

For a moment, I thought that should be it. But alas, no! :(

Since this is a 2008 Server Web edition (and not R2), the default app pool is running under NETWORK SERVICE account. And the new image folders uploaded has full access rights assigned to NETWORK SERVICE. So it should've worked.

I anyways, checked the App_Data folder and surprisingly, it didn't have NETWORK SERVICE in its permissions list. So I again gave Full Access rights. Still no luck.

6/9/2010 8:55:15 AM
Gravatar
Total Posts 4

Re: Data folder Permissions: Windows Web Server 2008

Joe,

Guess what! I removed User Access Control and it now works perfectly fine!

Thanks for your support!

Cheers!

Vishwanath

6/13/2012 7:05:47 AM
Gravatar
Total Posts 68

Re: Data folder Permissions: Windows Web Server 2008

Hi,

I am having the same issue on Windows 2008 R2 and IIS 7.5 with MS SQL 2008

I gave Network Service privileged like in your video Joe. I also gave IIS_IUSRS full permissions on \DATA and \APP_Data

The application pool identity is set to NetworkService too.

It still says

  • The Data folder is not writable.
  • The Data/Sites/1/ folder is not writable
  • The Data/Sites/1/systemfiles/ folder is not writable
  • The Data/Sites/1/index/ folder is not writable
  • The Data/Sites/1/SharedFiles/ folder is not writable
  • The Data/Sites/1/SharedFiles/History/ folder is not writable
  •  
  • What am I missing?

 

6/14/2012 2:49:49 PM
Gravatar
Total Posts 18439

Re: Data folder Permissions: Windows Web Server 2008

Those messages tell the truth, the user that is the identity on the application pool does not have write permission on those folders, though you may think you have configured it correctly, it cannot write files.

Hope that helps,

Joe

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