473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How do I use ASP to download a file that has particular ntfs permissions

Hi,

I'm trying to write a script that will allow validated users to
download a file that has specific ntfs permissions. Here's a summary:

Scenario:
1) The name of the file is "binary.zip".
2) I've created a local account on the server called "dl_user".
3) dl_user is the only account that has permissions on binary.zip.
4) I've written a script that validates several people to access a web
page that has a link to binary.zip. However whenever they click it,
they get prompted for a username and pw. If they enter the "dl_user"
credentials, it works.

Problem:
I don't want these people to be prompted for the username and pw.
Instead, I'd like IIS, through some ASP mechanism, to pass the dl_user
credentials in the background so that the users are completely unaware
of the account that has NTFS permissions to the file. Is there any way
to do this?
Jul 19 '05 #1
5 1727
not 100% sure I got what you are after but this may help
http://www.darkfalz.com/1109
Otherwise search the web for "impersonate" as it pertains here.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"travelling_nerd" <tr*************@yahoo.com> wrote in message
news:96**************************@posting.google.c om...
Hi,

I'm trying to write a script that will allow validated users to
download a file that has specific ntfs permissions. Here's a summary:

Scenario:
1) The name of the file is "binary.zip".
2) I've created a local account on the server called "dl_user".
3) dl_user is the only account that has permissions on binary.zip.
4) I've written a script that validates several people to access a web
page that has a link to binary.zip. However whenever they click it,
they get prompted for a username and pw. If they enter the "dl_user"
credentials, it works.

Problem:
I don't want these people to be prompted for the username and pw.
Instead, I'd like IIS, through some ASP mechanism, to pass the dl_user
credentials in the background so that the users are completely unaware
of the account that has NTFS permissions to the file. Is there any way
to do this?

Jul 19 '05 #2
You could also store the file somewhere else and stream it s content to the
browser using an ASP page...

--

"travelling_nerd" <tr*************@yahoo.com> a écrit dans le message de
news:96**************************@posting.google.c om...
Hi,

I'm trying to write a script that will allow validated users to
download a file that has specific ntfs permissions. Here's a summary:

Scenario:
1) The name of the file is "binary.zip".
2) I've created a local account on the server called "dl_user".
3) dl_user is the only account that has permissions on binary.zip.
4) I've written a script that validates several people to access a web
page that has a link to binary.zip. However whenever they click it,
they get prompted for a username and pw. If they enter the "dl_user"
credentials, it works.

Problem:
I don't want these people to be prompted for the username and pw.
Instead, I'd like IIS, through some ASP mechanism, to pass the dl_user
credentials in the background so that the users are completely unaware
of the account that has NTFS permissions to the file. Is there any way
to do this?

Jul 19 '05 #3
"Patrice" <no****@nowhere.com> wrote in message news:<uH**************@TK2MSFTNGP12.phx.gbl>...
You could also store the file somewhere else and stream it s content to the
browser using an ASP page...

Thanks for the suggestion. Currently I have a redirect to the file,
however, if someone knows the absolute http path to the file, they can
get to it.

Do you have any examples of "streaming files to browser"?

Thanks.

--

"travelling_nerd" <tr*************@yahoo.com> a écrit dans le message de
news:96**************************@posting.google.c om...
Hi,

I'm trying to write a script that will allow validated users to
download a file that has specific ntfs permissions. Here's a summary:

Scenario:
1) The name of the file is "binary.zip".
2) I've created a local account on the server called "dl_user".
3) dl_user is the only account that has permissions on binary.zip.
4) I've written a script that validates several people to access a web
page that has a link to binary.zip. However whenever they click it,
they get prompted for a username and pw. If they enter the "dl_user"
credentials, it works.

Problem:
I don't want these people to be prompted for the username and pw.
Instead, I'd like IIS, through some ASP mechanism, to pass the dl_user
credentials in the background so that the users are completely unaware
of the account that has NTFS permissions to the file. Is there any way
to do this?

Jul 19 '05 #4
That's a good tip. Thanks.
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:<#4**************@TK2MSFTNGP12.phx.gbl>...
not 100% sure I got what you are after but this may help
http://www.darkfalz.com/1109
Otherwise search the web for "impersonate" as it pertains here.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"travelling_nerd" <tr*************@yahoo.com> wrote in message
news:96**************************@posting.google.c om...
Hi,

I'm trying to write a script that will allow validated users to
download a file that has specific ntfs permissions. Here's a summary:

Scenario:
1) The name of the file is "binary.zip".
2) I've created a local account on the server called "dl_user".
3) dl_user is the only account that has permissions on binary.zip.
4) I've written a script that validates several people to access a web
page that has a link to binary.zip. However whenever they click it,
they get prompted for a username and pw. If they enter the "dl_user"
credentials, it works.

Problem:
I don't want these people to be prompted for the username and pw.
Instead, I'd like IIS, through some ASP mechanism, to pass the dl_user
credentials in the background so that the users are completely unaware
of the account that has NTFS permissions to the file. Is there any way
to do this?

Jul 19 '05 #5
See :
http://support.microsoft.com/default...B;en-us;276488
(How To Use the ADODB.Stream Object To Send Binary Files to the Browser
through ASP)

This one may also helps :
http://support.microsoft.com/default.aspx?kbid=260519
(shows how to raise the download dialog)

Patrice
--

"travelling_nerd" <tr*************@yahoo.com> a écrit dans le message de
news:96**************************@posting.google.c om...
"Patrice" <no****@nowhere.com> wrote in message

news:<uH**************@TK2MSFTNGP12.phx.gbl>...
You could also store the file somewhere else and stream it s content to the browser using an ASP page...


Thanks for the suggestion. Currently I have a redirect to the file,
however, if someone knows the absolute http path to the file, they can
get to it.

Do you have any examples of "streaming files to browser"?

Thanks.

--

"travelling_nerd" <tr*************@yahoo.com> a écrit dans le message de
news:96**************************@posting.google.c om...
Hi,

I'm trying to write a script that will allow validated users to
download a file that has specific ntfs permissions. Here's a summary:

Scenario:
1) The name of the file is "binary.zip".
2) I've created a local account on the server called "dl_user".
3) dl_user is the only account that has permissions on binary.zip.
4) I've written a script that validates several people to access a web
page that has a link to binary.zip. However whenever they click it,
they get prompted for a username and pw. If they enter the "dl_user"
credentials, it works.

Problem:
I don't want these people to be prompted for the username and pw.
Instead, I'd like IIS, through some ASP mechanism, to pass the dl_user
credentials in the background so that the users are completely unaware
of the account that has NTFS permissions to the file. Is there any way
to do this?

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: fripper | last post by:
I have just installed Visual Studio .Net Academic 2003 and MSDN Academic 2003. In testing a program that I had written in the 2002 version I find that when I use fileopen to access a file I get: ...
0
by: HitSkiper | last post by:
I am getting the error "The security ID structure is invalid." When running this code. Sub SetPermissions(ByRef vPath As String, ByVal UserName As String) Dim objADsSec As ADsSecurity Dim...
3
by: Anil Gupte | last post by:
My original question had to do with forcing a download instead of play for a known mime type. I got some useful pointers, but, I failed. Can someone tell me what is going wrong in this code? ...
8
by: John | last post by:
Greetings, I was talking to my host company representative this evening, and he thought that certain web crawlers (he mentioned Offline Explorer /and/ Anawave WebSnake would be able to download...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
1
by: Matt Hamilton | last post by:
I was hoping that someone can give me step-by-step instructions to fix the following: We would like our ASP.NET application to utilize a central file server for uploads and downloads. I have...
7
by: Zach | last post by:
The formatting system of my HD is NTFS. When I right click on a file in Windows Explorer, I get a Properties Window with only two tabs: "General" and "Summary". I don't get a Security Tab,...
10
by: robwharram | last post by:
Hi, I'm quite frustrated in the fact that I can't even display a simple "Hello World" message on .Net. I've been through all of the groups and searched all over the place and haven't been able...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.