473,398 Members | 2,212 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,398 software developers and data experts.

Run ASP.NET Scripts as different User

I have this ASP.NET script that i use for creating tables
of files in a folder for users. The problem is that if
the user changes the username to create the list of files
for, they can see the files but now download them (NTFS
permissions). I noticed that the Network Service account
requires list directory access so it gets round my
permissions. How do i get the script to run as the user
logged on via the site (Windows Authentication) instead
of the network service account?
Jul 19 '05 #1
3 3177
"William" wrote in message news:18*****************************@phx.gbl...
: I have this ASP.NET script that i use for creating tables
: of files in a folder for users. The problem is that if
: the user changes the username to create the list of files
: for, they can see the files but now download them (NTFS
: permissions). I noticed that the Network Service account
: requires list directory access so it gets round my
: permissions. How do i get the script to run as the user
: logged on via the site (Windows Authentication) instead
: of the network service account?

Hi William...

The topic here is Classic ASP. All .NET NGs have dotnet in their name.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #2
Sorry about that, i didn't know, i was just looking in
IIS because i thought it was an IIS problem and ASP and
this seemed to be the closest match. Can you link me
where i'd get the help i need please?
-----Original Message-----
"William" wrote in message news:1874801c41ad9$52ee9790 $a*******@phx.gbl...: I have this ASP.NET script that i use for creating tables: of files in a folder for users. The problem is that if
: the user changes the username to create the list of files: for, they can see the files but now download them (NTFS
: permissions). I noticed that the Network Service account: requires list directory access so it gets round my
: permissions. How do i get the script to run as the user
: logged on via the site (Windows Authentication) instead
: of the network service account?

Hi William...

The topic here is Classic ASP. All .NET NGs have dotnet in their name.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, butwithout any warranty; without even the implied warranty of merchantabilityor fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.aspMSDN Library - http://msdn.microsoft.com/library/default.asp

.

Jul 19 '05 #3
"William" wrote in message news:18*****************************@phx.gbl...
: Sorry about that, i didn't know, i was just looking in
: IIS because i thought it was an IIS problem and ASP and
: this seemed to be the closest match. Can you link me
: where i'd get the help i need please?

Try...

microsoft.public.dotnet.framework..aspnet
microsoft.public.dotnet.framework..aspnet.security

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #4

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

Similar topics

7
by: Dave Smithz | last post by:
Hi There, I have taken over someone else's PHP code and am quite new to PHP. I made some changes and have implemented them to a live environment fine so far. However, I now want to setup a...
0
by: secun | last post by:
I've written some python scripts to handle different tasks on my Windows network. I would like to have them accessible via a single web page (kind of like a dashboard) and have the scripts run on...
4
by: Florian Lindner | last post by:
Hello, given the following situation: I have a script which is readable and executable by a user, but not writable. The users executes the scripts, it reads in a value and based on this value...
2
by: RJ | last post by:
We currently send product releases to our customers, and often have to include scripts that need to be ran on the Oracle databases (also do it for SqlServer customers, but we use a different set of...
7
by: ergobob | last post by:
Hello, I have two small PHP scripts running on a test page at: http://www.usernomics.com/ergonomic-products-accessories5.html Both scripts work perfectly when there is one script on a page....
8
by: Dario de Judicibus | last post by:
It looks like there is no way, currently, to select elements or part of element content by script, that is, by alphabet. An alphabet is DIFFERENT from a language. I can use the same alphabet to...
13
by: BartlebyScrivener | last post by:
New to Python and Programming. Trying to make scripts that will open sites and automatically log me on. The following example is from the urllib2 module. What are "realm" and "host" in this...
8
by: Bernard Lebel | last post by:
Hello, I would like to know if there is a way to run a Python file under a different user account than the one logged in. Allow me to explain. There are a bunch of people here, they are "basic...
31
by: Manfred Kooistra | last post by:
If I have a document like this: <html> <head> <script language=javascript> window.location.href='file.php'; </script> </head> <body> body content
3
by: randommale9999 | last post by:
I was wondering how people are able to create ajax applications like star ratings scripts without having bots hit the scripts. I have a star rating script on my site which was getting hit by bots....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.