From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 15:50:16 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 94BBA16A50D for ; Tue, 29 Jan 2008 15:50:16 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 2EF7A13C468 for ; Tue, 29 Jan 2008 15:50:15 +0000 (UTC) (envelope-from derek@computinginnovations.com) MailScanner-NULL-Check: 1202226586.3882@SW9hGC1oEC5wN5Waw2n5zw Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.13.8) with ESMTP id m0TFnkdU079724; Tue, 29 Jan 2008 09:49:46 -0600 (CST) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080129094553.0250ce68@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Tue, 29 Jan 2008 09:49:32 -0600 To: Wojciech Puchar , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <20080129115936.Y2421@wojtek.tensor.gdynia.pl> References: <20080129115936.Y2421@wojtek.tensor.gdynia.pl> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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 15:50:16 -0000 At 05:02 AM 1/29/2008, Wojciech Puchar wrote: >i've got on one of my servers on just one account >when trying to run bash script (it is set to executable) > >doing > >bash ./scriptname > >instead of > >./scriptname > >helps BUT > >on other accounts, or root account - it works. > >what's up? > 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 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 it should be executable by everyone. -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.