[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange diagnostic



> On Mon, 2003-01-27 at 11:29, Nikita V. Youshchenko wrote:
> > > Since it is a script, it presumably starts with
> > > #! /path/to/interpreter
> > >
> > > The problem is that the user doesn't have execute permission on
> > > /path/to/interpreter
> >
> > User HAS execute permisions on /bin/bash.
>
> Sure he does, but bash is complaining that it cannot execute the
> interpreter for your script.  What have you got in its first line?

nikita@zigzag:~> cat t
#!/bin/bash
echo "XXX"
nikita@zigzag:~> su
Password:
root@zigzag:/home/nikita> chmod 744 t
root@zigzag:/home/nikita> ./t
XXX
root@zigzag:/home/nikita> exit
nikita@zigzag:~> ./t
bash: ./t: /bin/bash: bad interpreter: Permission denied

Doesn't this demonstrate the bug cleanly?



Reply to: