Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Archive/Restore using ASP

Status
Not open for further replies.

MustangPriMe

IS-IT--Management
Oct 9, 2002
74
GB
I'm attempting to create some ASP to archive/restore a CAB file.

I have some script which uses Wscript.Shell to run a DOS command. I also have the 'msmdarch' command string which when run at a command prompt on the AS/Web server does create an archive file. However, the same command string does not do anything when triggered from the ASP.

I'm guessing it's a permissions problem somewhere, but as the msmdarch does not produce any output to the command window, I'm have difficulty ascertaining where the problem is.
Any ideas, or suggestions on how to track this one down?
 
My guess would be that it is a security issue. When you run the command through a command window it is being executed under your current login security rights. WHen the asp page atempts to run it runs under a different security context unless you have NTLM authentication set. If NTLM is not set then the command attempts to run under what ever the server is configured to use default is IUSER_MachineName, if NTLM is set then I am not sure what it could be. You may want to look at your system event logs and see if it shows anything. also you may want to put the archive command into a BAT file and redirect any output to a text file.

Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
Thanks for the reply.

NTLM is not set as this is on a shared hosting server.
However, IUSER_MachineName does have permission to the msmdarch command, as well as an log directory where it should be creating a text file of the output of the command.

Anywhere else that IUSER_MachineName should have permission to?

Thanks,
Paul
 
bit risky but it may need to be in the OLAP Admin group.

Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
Hmmmm

Still not running, or any indication of what's preventing it.

Thanks for your help on this one. It looks like I'll need to rethink the approach for this.

Cheers,
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top