From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 16:13:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E21FB16A418 for ; Tue, 29 Jan 2008 16:13:53 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id D3BD313C448 for ; Tue, 29 Jan 2008 16:13:46 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id m0TGBrWG003396; Tue, 29 Jan 2008 17:11:53 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id m0TGBp5K003393; Tue, 29 Jan 2008 17:11:53 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 29 Jan 2008 17:11:51 +0100 (CET) From: Wojciech Puchar To: Derek Ragona In-Reply-To: <6.0.0.22.2.20080129094553.0250ce68@mail.computinginnovations.com> Message-ID: <20080129171004.L3385@wojtek.tensor.gdynia.pl> References: <20080129115936.Y2421@wojtek.tensor.gdynia.pl> <6.0.0.22.2.20080129094553.0250ce68@mail.computinginnovations.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2008 16:13:54 -0000 >> > > 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