How Do I Use ASP To Download A File That Has Particular Ntfs Permissions

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?

View Replies


ADVERTISEMENT

ASPs And NTFS Permissions

I have been successfully running ASP on a W2K IIS5.0 server using Anon
Access enabled, but would like to be able to restrict access to a particular
folder containing some ASP content to a particular NTFS user group that I
have set
up.

I have added this group to the particular folder (giving Full Control) and
switched off anon access and added Intergrated Windows authentication in IIS
Admin. The problem is that although users can access static content in this
folder, any attempt to run an ASP fails with a logon box appearing and
"Error: access denied" apearing in the page.

Is the problem that this user group does not have permissions on the system
files used to execute the ASPs? Everything works fine under my admin
account or if I make it all Anonymous access.

View Replies View Related

Changed NTFS Permissions

I am working with asp and windows XP pro developing an Intranet website. I was dealing with some security issues when i came across this article.

http://support.microsoft.com/default.aspx?scid=kb;EN;271071

I used it to change my computer setting exactly as it says. after that myapplication is giving wrong results. If i set up the application on other computers it is working fine which means that all problems are due to the settings that I changed. However I do not know how to undo the changes that I made.

View Replies View Related

How To Change NTFS Permissions Programmitcally

I programmed a web application that will let members to register and
reserve space for them on my web using a folder they choose.

Every thing went well until i tried to test it on the WebServer it gave
me "Access Denied" Error.

Please, is there a way that i could give permissions to the folders i
want so that users could upload to to easily??

View Replies View Related

Re Setting File Permissions...

I am developing a small website using ASP scripts to format data retrieved
from an Access database. It will run on a Windows 2003 server supporting
FrontPage extensions 2002 hosted by the company 1&1 with only limited server
configuration via a web based control panel.

My query relates to the ASP security model and how it relates to FrontPage
options for setting file access on a database file. If you know of any
online documentation covering the following issues I would be grateful for
links to it.

For various reasons (session logging, synchronising data with a master
database etc) I need to be able to write data to the database file.
Essentially the problem is this: how do I make this possible without giving
public access to the database file? Code:

View Replies View Related

Setting File Permissions Via ASP

Is it possiable via a ASP to set (NTFS) permissions on files not on the IIS server?I'm sticking together an ASP to create our new user Home/Profile dir file structure. The script is running in anonymous user mode using an account which has full perm on the file severers.

It's creating the file structure OK, but when it comes to the file permissions, CALCS direct or CACLS in a .CMD doesn't appear to be able to set ther permissions when invoked from the ASP. It does however work for the user when logged on the server's local console.

View Replies View Related

Setting File/Folder Permissions

I am trying to use this bit of code to change the permissions on a file. Apparently it should work but it isn't. I am getting no error messages just nothing is happening. The path to the file is definitley correct. Does anyone have any idea what I am doing wrong?
Code:
<%
strFileOrFolder = "D:WebRoothtdocsProjects est.txt"
strUserName = "Everyone"

dim objWSH
set objWSH = CreateObject("WScript.Shell")
Call objWSH.Run("cmd /c echo y| CACLS " & strFileOrFolder & " /G /T " & trim(strUserName) & ":f", 0, True)
set objWSH = Nothing
%>

View Replies View Related

Access Database File Permissions

I am methodically working my way through the Sitepoint 'Build your own ASP.NET website' and have been successful in every lesson up to page 279. However I've come stuck when trying to add information to an Access Database. When I try to do so I get the message:

Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.

I have tried the solution described in the book but still get the message. I am using IIS and XP Professional. The database works for queries so how do I get it to accept information entries?

View Replies View Related

A File Permissions Error Has Occurred ...

i seem to to be getting this error on my website for any pgae which ends in asp/php. any page will work fine in html format Code:

A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.

View Replies View Related

Access Database File Permissions

I had some issues with setting file permissions to write to my database in access. How do I go about, step - by - step setting the file permissions?

View Replies View Related

IIS Delete/write Text File Permissions

ive set the permissions to the folder which the text file is in to 'Write' and 'Read', but i still continue to get:

[/CODE]
Microsoft VBScript runtime error '800a0046'

Permission denied

/modules/admin/program.asp, line 197
[/CODE]

all the path leading to the file is set to allow write aswell.... any ideas why this might be happening?

View Replies View Related

NTFS Permission

How can I check NTFS permission and how to give the IUSR account sufficient privileges to update the databasewhich is in MSACCESS.It's always give error operation must use updatable query.

View Replies View Related

NTFS Quotas

how to query a windows 2000 server to find out disk quota information for a given user, i.e.: is quotaing enabled, what's the (given users) limit and how much is used so far? the server the script will run on and the server that I want to query are memebers of the same domain.

View Replies View Related

File Download Box

Downloaded the sendMail.htm and sendMail.asp sample files
from technet onto my IIS 4.0 server. The first 2-3 times
I tested all went well. Subsequent tests, with no server
changes, gave/gives me the "File Download" dialogue box
when the sendMail.asp file should be executing. Why does
sendMail.asp give a "File Download" box instead of just
executing?

View Replies View Related

Download A File

I need to have script that automatic download files (open a "save file
dialog box") based on a variable (value in the URL).

Example:

files.asp?file=1 shall automaticly download file1.mp3 (open a dialogbox for
saving file1.mp3)

files.asp?file=2 shall automaticly download file2.mp3 (open a dialogbox for
saving file2.mp3)

View Replies View Related

Download File

I want to be able to let users download movies from my site, but when they click on the link it opens automatically with windows media player. Of course, they could right click and save target as, but the majority of users don't realise this.

Is there a way to tell a page to send the file to the browser as an attachment and force them to save it to disk i.e. not open automatically.

View Replies View Related

Download File

I have to write a code for download file in asp.

View Replies View Related

Download File

i just want to find out how do i make a file downloadable, like when it gives an option to save or open the file not only open it.

View Replies View Related

Download CSV File

How can i download a CSV file the same way a i could with a Excel XLS file using teh below at the top of the page: Code:

response.contentType = "application/vnd.ms-excel"

View Replies View Related

Download Txt File

can't use filesystemobject to create txt file on my C: drive. gives me access denied error.

I used same object to create file in the directory on the web server but how can I download txt file using something like a simple hyperlink to the exe file. a hyperlink to a text file simply opens that file in a browser.

View Replies View Related

File Download

I want the MP3 audio files to be able to download by users only. Even I set the pages validated by session, anyone still can type the download url to get my files without access of the pages where download URL provided. How can I do in order to prevent everyone from downloading without a user account?

View Replies View Related

Prevent File Download

Currently i am doing a file management project where user are able to create folder and upload files to it. The file ownner would be able to set permission (from database linking to the file path) if a user able to download it or not.

*each file info will be stored into a table e.g. fileid, filename, path, access.

Now i am facing a problem where if a user does not have permission to click on the link to download, the user can guess the path and the file name and directly type the path on the address bar to download the file.

View Replies View Related

File Download Stream

i want to be able to write an asp.net function to download files.

For example, brinkster.com hosting service has a COM component that allows a stream of binary data to the client from the server so that the client will be prompted to download the file.

here is the syntax:

Set Upload = Server.CreateObject("Persits.Upload")

Dim SysFilePath
SysFilePath = Request.QueryString("filePath")

' Parmeters:
' 1. Path to file to download
' 2. Yes, build content-xxx headers
' 3. Use this value for Content-Type header
' 4. Include the word "attachment;" to Content-Disposition to force download

Upload.SendBinary "premfs3sitespremium8jaydakissx22webrootmyFile.txt, True, "application/octet-binary", True

How can I do this in asp.net without using the "Persits.Upload" COM object?

View Replies View Related

Create And Download File

I have a script in ASP 3.0 which creates a CSV file on the server. After the
code has run I want it to prompt the user to download the file (via the
browser). I have spent a frustrating hour trying this.

View Replies View Related

File Download Dialog Box For Pdf

I want to get dialog box(open,save,cancel) for pdf file using asp(vbscript).
Presently when i click on pdf link on the site,the pdf document opens in
the browser.

I have used the below code(download.asp?file=filename):

<%
Response.AddHeader "content-disposition", "attachment; filename=" &
request.querystring("file")
Response.ContentType = "application/octet-stream"
%>

This file resides in the same dir of pdf documents Code:

View Replies View Related

File Download Utility

how do i create a file download utility that limits the number of users? for example, a maximum of 5 users can download a particular file at the same time.
i can use asp (not asp.net), javascript, maybe read/write a text file if necessary.

View Replies View Related

Automatic File Download

if anyone had any script that can allow a page to run some code and then kick off a file download.Maybe like many places do saying download should start automatically or you can "click here".I appologise if this is easy to work out from the source of one of those pages, but my view source seems to have died and I thought an answer from here might be quicker than fixing it!

View Replies View Related

Dont Download A File

i have a file *.num and when i enter the full URL to download it he give my
a 404 error !

but when i rename the *.NUM by *.TXT everything coming ok !?
so how i can tell to IIS6 to accept *.num files ?

View Replies View Related

How To Force A File Download

How to force a file download

Is it possible to use ASP to create something like, the following webpage, where you click on the download Mozilla now and up pops the downloader.

http://www.download.com/Mozilla-Fire...eatured.editor

I need to make it so that I can download a .WMV video file. because giving users the direct link doesn't work and I think its alot better than asking them to right click and save item as..

View Replies View Related

File Download In My Own Website

I wanna make a link for my visitors to download some files in my website.How can I do so?

View Replies View Related

File Download Https

I am trying to write a routine that allows users to download files from our secure site, with the code below the file will download and when you click save i get an IE error. However when the page is not https the routine runs just fine. Any Ideas?

View Replies View Related

Multiform Asp File Download

I am using enctype of multipart/form-data to transfer
files. However, in the target page (action), I can only
retrieve the file. ie. If I call Request.BinaryRead, then
Request doesnt process Form or QueryString anymore. If I
access Form/ QueryString, BinaryRead doesnt work anymore.

Is this by design? If so, how can I pass parameter to the
target page, alongwith file?

View Replies View Related

Download Text File

i have a code that creates a text file and puts it into a folder on the server. i would like after the script is finished creating the text file to prompt the user to download the newly created text file, when he clicks yes a window should appear asking where he would like to save it.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved