Re: "Bad interpreter" shell messages

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

 



On Saturday 29 January 2005 22:32, Robert L Cochran wrote:
> I'm trying to run a small shell script to supply options to the
> configure script in postgresql 8.0, which was released a few days ago.
> When I try to do this in Fedora Core 3, I get thiis mesage:
>
> bash: ./configit.sh: /bin/sh: bad interpreter: Permission denied
>
> I'm doing this from a second hard drive that I've mounted. The second
> drive has an older release of Fedora Core on it:
>
> [rlc@bobcp4 postgresql-8.0.0]$ pwd
> /mnt/any/home/rlc/postgresql-8.0.0
>
> Here is the directory listing for the script I want to execute:
>
> -rwxrwxr-x   1 rlc rlc    155 Jan 29 22:22 configit.sh
>
> What am I doing wrong -- why am I getting the "Permission denied" messages?
>
> Thanks
>
> Bob Cochran
The error you're getting is not about the script itsself but the interpreter 
used for it.. Look at the first line of configit.sh - it should start with 
#!/bin/sh 
what's the output of "ls -la /bin/sh" ?
Also do you have selinux enabled?

Peter.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux