Solved

Windows 2008 IIS7 - /.net App / - mapped folder, write permission ?

Posted on 2011-09-12
8
302 Views
Last Modified: 2012-06-27
Hi Experts,

I'm running a .net application on Windows 2008 R2/IIS7 and this application should be able to upload and read files on a mapped folder from some other server under the same domain.

A file can be only uploaded when "Everyone" given with full permission. But I think it's not a secure way for a production environment. (I have tried giving "Network Service" full permission bit it's only allow for me to read a already uploaded file but I can't do any new uploading.)

Can you please advice with me on how to change the permission to work IIS correctly/securely  ?

Thanks a lot for your time !
0
Comment
Question by:Shakthi777
8 Comments
 
LVL 17

Accepted Solution

by:
Rovastar earned 375 total points
ID: 36527725
What happens when your try and upload these files? error? messages?

Procmon will tell you what has failed with permission issues
http://technet.microsoft.com/en-us/sysinternals/bb896645

try on the both servers to get a picture of this.
0
 
LVL 16

Assisted Solution

by:Easwaran Paramasivam
Easwaran Paramasivam earned 125 total points
ID: 36527735
0
 

Author Comment

by:Shakthi777
ID: 36528219
thanks for your comments the error I'm getting is;

System.UnauthorizedAccessException: Access to the path '\\192.168.22.3\folder 111\subone\file_1.txt' is denied.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 11

Expert Comment

by:Sanjay Santoki
ID: 36530639
Hello,

Please be sure that you have Shared & NTFS write permission on this shared folder for application pool identity user and anonymous user.

Thanks,
Sanjay Santoki
0
 
LVL 17

Assisted Solution

by:Rovastar
Rovastar earned 375 total points
ID: 36531520
Yes you will need the app pool identity user but as network services from the client machine (in this case the initial IIS server)

better still try a dedicated user of that machine or if in a domain try a domian user. This should clear up any confusion.

If still a problem use procmon to look at see the real time permissions and access on the end server.

http://technet.microsoft.com/en-us/sysinternals/bb896645
0
 

Author Comment

by:Shakthi777
ID: 36533948
I didn't get "app pool identity user" can you please explain ....

thanks for your time  !
0
 
LVL 17

Assisted Solution

by:Rovastar
Rovastar earned 375 total points
ID: 36534357
0
 

Author Closing Comment

by:Shakthi777
ID: 36597444
tnx guys... ! I added "NETWORK" and then it's working fine.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question