MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Tue Jan 29 08:13:54 PST 2008


>> 
>
> Your script likely has as the first line:
> #!/usr/local/bin/bash
>
> I would suspect /usr/local/bin is not in the path of the problem accounts or

$ echo $PATH
/bin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/smietnik/tmp/bin
$ echo $PATH
/bin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/smietnik/tmp/bin
[mp3 at helnet ~]$ cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash

to make things more funny, /usr/local/bin/bash is a default shell for that 
(and other) account.

> isn't in /etc/shells, or is restricted to run for only some users and groups. 
> Check the bash executable doing:
> ls -al /usr/local/bin/bash

[mp3 at helnet ~]$ ls -al /usr/local/bin/bash
-rwxr-xr-x  1 root  wheel  748288 15 cze  2007 /usr/local/bin/bash





More information about the freebsd-questions mailing list