473,382 Members | 1,692 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,382 software developers and data experts.

Script execution : permissions denied

Hi,

I need to run an exe on my server from a web-page, presumably using asp,
does anyone know how I can do this because with this script (below) I get an
error : ' permissions denied '

I give all rigth to IUSR and IWAN personn but it the same !?
the asp script :

<%

appli = "/toto/toto.bat"
appli = Server.MapPath(appli)

Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = appli
Executor.ShowWindow = true
Executor.TimeOut = 9000
strResult = Executor.ExecuteDosApp
Response.Write "Result is " & strResult

%>

the toto script :

echo "coucou" >> coucou.lst

thanks for your help
Jul 19 '05 #1
3 5888
I write this line because first I want to execute windows exec.
I delete it but nothing change !
It's the same error. This error is done by the line << Response.Write
"Result is " & strResult >> It's the response of ExecuteDosApp.

If you know an other component that can do this, I will enjoy to use it !!

Thanks

"Ray at <%=sLocation%>" <ra*@ajf8jalskdfna.sefrhja7yasdf.com> a écrit dans
le message de news:eT**************@TK2MSFTNGP12.phx.gbl...
On what line do you get the error? I'm not familiar with this ASPExec
component, but what is with Executor.ShowWindow? Who is it going to show it to. Perhaps that line is the problem and is not necessary.

Ray at home

"fdp3" <fd**@free.fr> wrote in message
news:3f***********************@news.free.fr...
Hi,

I need to run an exe on my server from a web-page, presumably using asp,
does anyone know how I can do this because with this script (below) I
get an
error : ' permissions denied '

I give all rigth to IUSR and IWAN personn but it the same !?
the asp script :

<%

appli = "/toto/toto.bat"
appli = Server.MapPath(appli)

Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = appli
Executor.ShowWindow = true
Executor.TimeOut = 9000
strResult = Executor.ExecuteDosApp
Response.Write "Result is " & strResult

%>

the toto script :

echo "coucou" >> coucou.lst

thanks for your help


Jul 19 '05 #2
Still no code.

It may appear that you're executing this save command and the argument
you're passing is supposed to be a filename, yes? If so, you can't use a /
in a filename. Try saving the file as yahoofr.txt or something.

Ray at home

"fdp3" <fd**@free.fr> wrote in message
news:3f***********************@news.free.fr...
I am not sure but if you want the exact code, it is this code.

But the true error with the toto.bat is : " Result is C:\WINNT\system32>echo "coucou" 1>>coucou.lst AccSs refus,. "

But I want to resolv this problem because it is the same when I want to
execute wget.exe
The error is :

Result is --09:43:19-- http://www.yahoo.fr:80/ =>
`save/www.yahoo.fr/index.html' Connecting to www.yahoo.fr:80... connected!
HTTP request sent, awaiting response... 302 Found Location:
http://fr.yahoo.com/ [following] --09:43:20-- http://fr.yahoo.com:80/ =>
`save/www.yahoo.fr/index.html' Connecting to fr.yahoo.com:80... connected!
HTTP request sent, awaiting response... 200 OK Length: unspecified
[text/html] save/www.yahoo.fr: Permission
deniedsave/www.yahoo.fr/index.html: No such file or directory Cannot write
to `save/www.yahoo.fr/index.html' (No such file or directory).
FINISHED --09:43:20-- Downloaded: 0 bytes in 0 files

So, you can see the permission denied for save/www.yahoo.fr
Perhaps, It's right problem ?

Jul 19 '05 #3
I find my stupid error.

It's due to the path where I try to write.
I thought the exec was executed in the directory were it was or in the
directory where the page was launch.

But nothing ! It was executed in system32 where I didn't have any right.

Thanks for your help and sorry for my poor english
Jul 19 '05 #4

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

Similar topics

5
by: Phil Powell | last post by:
print_r(is_file("$logPath/$logFileName")); // RETURNS 1 unlink("$logPath/$logFileName"); // RETURNS WARNING: PERMISSION DENIED This code should tell me that the file located at...
3
by: Jerry | last post by:
Hi All: Is there any way I can get my script to be able to create and CHMOD folders and files??? I always get the following error: mkdir(TESTDIR): Permission denied in /usr/www/users... Is...
9
by: Jason | last post by:
it works from my logon (domain admin account), but everyone else gets Microsoft VBSCript runtime error '800a0046' Permission denied path/patj/script.asp line 16 I looked at a lot of articles...
1
by: Mark E. Hamilton | last post by:
Sorry, I probably should have re-stated the problem: We're using Python 2.3.5 on AIX 5.2, and get the follow error messages from some of our code. I haven't yet tracked down exactly where it's...
1
by: James | last post by:
What folders should the ASPNET user have permissions for, & what should they be? I keep getting 'Access Denied' or 'Server Access Denied' errors. I have given the ASPNET user Read & Execute...
5
by: Adrian Enders | last post by:
I have something that I have never seen before in a MS development product. I have a pretty simple call to a network directory that looks something like this ... Dim dirFolder As...
2
by: jdlists | last post by:
I'm running python on windows and have a program that watches a directory and acts on files as they come into the directory. After processing is complete, i delete the file, or in this case...
2
by: Paul | last post by:
I have a PHP script that is triggered by a .forward file when incoming email arrives. When triggered, the script retrieves the email using the php imap functions, processes the email, and then...
0
by: phil469 | last post by:
I'm having an issue when trying to read a file in a user's homedir from a cgi script. I have a virtual host section in my httpd.conf file which I'll include. The cgi script is a very basic script...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.