Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2008 10:24:07 -0600
From:      Derek Ragona <derek@computinginnovations.com>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied
Message-ID:  <6.0.0.22.2.20080129102333.0251df38@mail.computinginnovations.com>
In-Reply-To: <20080129171004.L3385@wojtek.tensor.gdynia.pl>
References:  <20080129115936.Y2421@wojtek.tensor.gdynia.pl> <6.0.0.22.2.20080129094553.0250ce68@mail.computinginnovations.com> <20080129171004.L3385@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:11 AM 1/29/2008, Wojciech Puchar wrote:


>>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@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@helnet ~]$ ls -al /usr/local/bin/bash
>-rwxr-xr-x  1 root  wheel  748288 15 cze  2007 /usr/local/bin/bash

Check your script then, add:
set -x
near the top and see where it is complaining.

         -Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20080129102333.0251df38>