I found something in dmesg:

grsec: denied exec of ./build.sh by (bash:18269) UID(501) EUID(501), parent 
(bash:21641) UID(501) EUID(501) reason: untrusted

On Sunday 08 February 2004 06:12 pm, robin wrote:
> Marty Phee wrote:
> > I've had this problem with other scripts before and it's driving me nuts.
> >  I'm trying to compile jetspeed web portal.  The script is build.sh and
> > is in the directory ~/apps/jetspeed-1.4/build/build.sh.
> >
> > The mode on the file is: -rwxrwxrwx
> > I changed it to chmod 777 just to try to get it to work.  It isn't in DOS
> > format either.  I check that.
> >
> > Here are the first couple lines.
> > #!/bin/sh
> >
> > # The name of the build file to use
> > BUILDFILE=build.xml
> >
> > # Root directory for the project
> > PROJECTDIR=..
> > .
> > .
> > .
> >
> > After I type ./build.sh I get:
> > : bad interpreter: Permission denied
> >
> > If I do: sh ./build.sh I get:
> > : command not found
> > : command not found
> > : command not found
> > : command not found:
> > : command not found:
> > : command not found:
> > : command not found:
> > : command not found:
> >
> > '/build.sh: line 54: syntax error near unexpected token `do
> > '/build.sh: line 54: `do
> >
> > I do develope in UNIX and haven't had problems like this.  Other things
> > work fine.  It's not every script file.  JBoss 3.2.3 run.sh works fine,
> > but JBoss 3.0.6 requires sh run.sh.
> >
> > I tried to create a test script:
> >
> > #!/bin/sh
> >
> > echo Hello World
> >
> > I get the same error:
> > bash: ./test.sh: /bin/sh: bad interpreter: Permission denied
>
> Try changing the line to
>
> #!/bin/bash
>
> Sir Robin

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to