Sheemu
asked on
Run ASP as admin
I know that ASP by default runs under IUSR_<computername>. I need this account to have only read permissions, but at the same time, I want ASP to be able to copy files from folder to folder. Is it possible to have the ASP file log in as an admin to make these changes?
Please help!
--Sheemu.
Please help!
--Sheemu.
"... ASP to be able to copy files from folder to folder ... " on the server only? giving admin access to a web user account would be foolish for security reasons ... perhaps you should create a vbscript and run it from the ASP page using the WSH... I am sure there will be others who will post giving more complete details of why admin access through the web isn't recommended...
ASKER
How would I run the vbscript from the ASP page?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So what permissions do I need to run the .vbs from ASP?
Because, I tried running a .bat file from the ASP that would do the file copying, but the execution is successful only for "echo Hello World" only and not for "Copy C:\mydoc.txt C:\myfolder"
Because, I tried running a .bat file from the ASP that would do the file copying, but the execution is successful only for "echo Hello World" only and not for "Copy C:\mydoc.txt C:\myfolder"
Sheemu,
You can also use File system object...
http://www.4guysfromrolla.com/webtech/faq/FileSystemObject/faq4.shtml
http://www.jamesrking.com/left_brain/active_server_pages/fso_in_depth.asp
Hope this help...
You can also use File system object...
http://www.4guysfromrolla.com/webtech/faq/FileSystemObject/faq4.shtml
http://www.jamesrking.com/left_brain/active_server_pages/fso_in_depth.asp
Hope this help...
Sheemu:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Answer by thomasdodds
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
GaryC123
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Answer by thomasdodds
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
GaryC123
EE Cleanup Volunteer