Script execution : permissions denied

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fdp3

    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.CreateOb ject("ASPExec.E xecute")
    Executor.Applic ation = appli
    Executor.ShowWi ndow = true
    Executor.TimeOu t = 9000
    strResult = Executor.Execut eDosApp
    Response.Write "Result is " & strResult

    %>

    the toto script :

    echo "coucou" >> coucou.lst

    thanks for your help


  • fdp3

    #2
    Re: Script execution : permissions denied

    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% >" <ray@ajf8jalskd fna.sefrhja7yas df.com> a écrit dans
    le message de news:eT8ZN0wRDH A.2252@TK2MSFTN GP12.phx.gbl...[color=blue]
    > On what line do you get the error? I'm not familiar with this ASPExec
    > component, but what is with Executor.ShowWi ndow? Who is it going to show[/color]
    it[color=blue]
    > to. Perhaps that line is the problem and is not necessary.
    >
    > Ray at home
    >
    > "fdp3" <fdp3@free.fr > wrote in message
    > news:3f0d8364$0 $26599$626a54ce @news.free.fr.. .[color=green]
    > > 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[/color][/color]
    get[color=blue]
    > an[color=green]
    > > 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.CreateOb ject("ASPExec.E xecute")
    > > Executor.Applic ation = appli
    > > Executor.ShowWi ndow = true
    > > Executor.TimeOu t = 9000
    > > strResult = Executor.Execut eDosApp
    > > Response.Write "Result is " & strResult
    > >
    > > %>
    > >
    > > the toto script :
    > >
    > > echo "coucou" >> coucou.lst
    > >
    > > thanks for your help
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • Ray at

      #3
      Re: Script execution : permissions denied

      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" <fdp3@free.fr > wrote in message
      news:3f0e6b74$0 $26601$626a54ce @news.free.fr.. .[color=blue]
      > 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[/color]
      C:\WINNT\system 32>echo[color=blue]
      > "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 ?
      >[/color]


      Comment

      • fdp3

        #4
        Re: Script execution : permissions denied

        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


        Comment

        Working...