DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 23 Jul 2007 11:11:09 +0200,    posted on: microsoft.public.dotnet.framework.aspnet.security        back       

Thread Index
  1    Paolo Liverani am
          2    Dominick Baier
                 3    Paolo Liverani am


best practice for accessing a network share from IIS   
Hello, I have a web application (ASP.NET 2.0)  which should allow 
authenticated users (via forms authentication) to download files that are 
stored in a network share in the same domain (windows 2000). I am byte 
streaming the content of the files so that clients do not connect directly 
to the file server but only to the web server (Windows 2003).
The "network service" user (the default one for IIS 6) does not have right 
to access network shares so I need to know which is the best way (the one 
with the least privilege) to configure the security settings for the 
application to work correctly.
Thank you, Paolo
Date:Mon, 23 Jul 2007 11:11:09 +0200   Author:  

Re: best practice for accessing a network share from IIS   
You should use UNC paths from ASP.NET (\\server\share)

Network Service appears remotely as MACHINE$ - give this account read ACLs 
for the share.


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)


> Hello, I have a web application (ASP.NET 2.0)  which should allow
> authenticated users (via forms authentication) to download files that
> are
> stored in a network share in the same domain (windows 2000). I am byte
> streaming the content of the files so that clients do not connect
> directly
> to the file server but only to the web server (Windows 2003).
> The "network service" user (the default one for IIS 6) does not have
> right
> to access network shares so I need to know which is the best way (the
> one
> with the least privilege) to configure the security settings for the
> application to work correctly.
> Thank you, Paolo
Date:Mon, 23 Jul 2007 09:55:26 +0000 (UTC)   Author:  

Re: best practice for accessing a network share from IIS   
Hello Dominick,
perfect: your suggestion works like a charm.
Thank you very much, Paolo

"Dominick Baier"  wrote in 
message news:8e6a913a1433f8c99b377e3d9982@news.microsoft.com...

> You should use UNC paths from ASP.NET (\\server\share)
>
> Network Service appears remotely as MACHINE$ - give this account read ACLs 
> for the share.
>
>
> -----
> Dominick Baier (http://www.leastprivilege.com)
>
> Developing More Secure Microsoft ASP.NET 2.0 Applications 
> (http://www.microsoft.com/mspress/books/9989.asp)
>
>> Hello, I have a web application (ASP.NET 2.0)  which should allow
>> authenticated users (via forms authentication) to download files that
>> are
>> stored in a network share in the same domain (windows 2000). I am byte
>> streaming the content of the files so that clients do not connect
>> directly
>> to the file server but only to the web server (Windows 2003).
>> The "network service" user (the default one for IIS 6) does not have
>> right
>> to access network shares so I need to know which is the best way (the
>> one
>> with the least privilege) to configure the security settings for the
>> application to work correctly.
>> Thank you, Paolo
>
> 
Date:Mon, 23 Jul 2007 17:11:08 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us