Running asp page as particular user

P

Peter

Hello!

Please, could anybody tell me, is it possible to run an asp page as
particular user?
I have this situation where I have one shared folder on particular server
and this folder is shared for just one user to access it. I wrote an asp page
wich should open a file from that shared folder. However because the folder
is shared for just one user I have somehow to run the asp page as this user.
The same way like in ASP.NET application where I can use impersonation in
web.config file. Is this possible? The help is very much appreciated!

Thanks in advance.

Peter
 
R

Ray at

You can control the anonymous access settings for that page in IIS, for one.

Ray at work
 
J

Jeff Cochran

Please, could anybody tell me, is it possible to run an asp page as
particular user?

ASP pages run in the context of whatever user runs them. In the case
of anonymous access, this is the anonymous user account. In the case
of Windows Authentication, this is the Windows account that
authenticated.
I have this situation where I have one shared folder on particular server
and this folder is shared for just one user to access it. I wrote an asp page
wich should open a file from that shared folder. However because the folder
is shared for just one user I have somehow to run the asp page as this user.

No, what you need to do is provide the proper permissions to the
file/folder that needs access. It makes no sense to lock a folder
down to only one user but impersonate that user for access when you
can simply provide the required access.
The same way like in ASP.NET application where I can use impersonation in
web.config file. Is this possible?

ASP doesn't do impersonation, but you could possibly stream the file
from the folder and impersonate the user in question. Or use ASP.NET
to access the file.

Or simply provide the required access in the first place. :)

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top