LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-27-2003, 11:16 AM   #1
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
/bin/sh - bad interperator, permissions denied


ok, ok, i confess!!!

i do not know what this message is all about....

all i know is that the 1st time i installed slackware i never got this message

and now the 2nd time i tried, because i had nailed a, get this, ntfs partition, and had to reinstall, all i know is that it no longer worked

bash worked but anything called sh inside of a script ran into the same problem

so, i'd love to know the top 10 reasons for getting this error.....

any takers

as always your help is greatly appreciated

- perry

ps.
now on my 3rd attempt after a complete reinstall of the partition table..... (gee wizz)
 
Old 11-27-2003, 11:24 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Maybe I'm not following you but when are you getting this error? During install or afterwards? Is the Bourne Shell getting installed or have you checked to make sure its pointing/linking to your bash shell possibly?
 
Old 11-27-2003, 04:16 PM   #3
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by trickykid
Maybe I'm not following you but when are you getting this error? During install or afterwards? Is the Bourne Shell getting installed or have you checked to make sure its pointing/linking to your bash shell possibly?
all this occurs after slackware 9.1 is installed and no updates have been made. thats just where the problem arises, in trying to do updates and the /bin/sh not functioning properly.

yes, i did a ls -l /bin/sh and it showed a direct link to bash

access priviliages were also correct

it did work the first time i installed slack. everything seemed to go funny after the partition table got wacked by Compaq's auto system recovery option (bad move on my part)

anyhow, i just went thru a gigantic reinstall and repartitioning of EVERYTHING today and with any luck this upteenth attempt at installed slack is going to work. i'll update this thread if it occurs again.

as my best guess centers about root and the partition table affecting permissions and the like.... (based on what i've read)

- perry


Last edited by perry; 11-27-2003 at 04:39 PM.
 
Old 11-27-2003, 05:00 PM   #4
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
ok, so far so good....

fresh install of slackware and the following program runs normally under /root

file: test
#!/bin/sh
ls -la

running is as: ./test

lists directory, seems to me it works

now lets see which update screws it up.....

- perry
 
Old 11-28-2003, 09:44 AM   #5
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
i didn't come across the problem again because of the fresh install, however jetblackz got back to me on the probable cause:

"bad interpreter:" usually means the file was written in Windows and
run in Linux. Download it again in Linux.

You should use bash shell. Login as root & change your login shell in
KDE > System/Utilities > User Accounts

If you're trying to install iptables, don't bother. It's included in
most modern distros.

HTH

jbz


thanks jbz

- perry
 
Old 11-28-2003, 10:14 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
It was probably just a bad initial install, etc. I've seen this sort of thing happen when it failed to create or write to the passwd file properly, which caused a reinstall afterwards, etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/bin/env: bad interpreter: Permission denied Master Fox Linux - Software 8 02-09-2012 08:25 AM
/bin/sh: bad interpreter: Permission denied itsaso Linux - Newbie 6 05-18-2005 10:00 AM
Selinux, ./INSTALL: /bin/sh: bad interpreter: Permission denied TomF Linux - Security 2 12-08-2004 11:36 AM
/bin/sh: bad interpreter: Permission denied linmix Linux - Software 12 08-16-2004 06:40 AM
#!/bin/sh - bad interperator, permissions denied - post install perry Slackware 2 11-27-2003 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration