LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-25-2005, 10:22 AM   #1
zum
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Rep: Reputation: 0
bad interpreter error


Hi, I'm hoping someone can help me with this problem.

First, I'm running Linux Red Hat 2.1 Enterprise on a Pentium 4, 2.5 ghz, 1gig of RAM using kernel 2.4.9

When booting up the server I receive an error message stating:

/etc/rc.d/rc: /etc/rc5.d/S20random:bad interpreter: Permission denied

Then it continues on with the boot up process and then another error comes up:

/etc/rc.d/rc: /etc/rc5.d/S56rawdevices: bad interpreter: Permission denied

Then conitues on again. The server does boot up but I cannot go into graphical mode. Not sure if that is because of the two errors above or because of another issue.

Thanks in advance for any help.

Zum.
 
Old 05-26-2005, 03:45 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Check the first line of the scripts that the symlinks (S20random and S56rawdevices) point to. If the magic line looks OK, check the permissions of the program it refers to.


Håkan
 
Old 05-28-2005, 05:33 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Other things to check.

A startup script like /etc/rc5.d/S20random probably is a symbolic link to /etc/init.d/random

A) check permissions of /etc/init.d/random
B) check the first line of /etc/init.d/random
It will be a script and the first line should start with the characters "#!", Most often it will be either #!/bin/sh or #!/bin/bash. If a different interpreter shell is used, is that shell installed.
C) how is the partition which contains the /etc directory mounted. If it is mounted with the noexec option (or an option that assumes the noexec option), then you will also get this error.

Last edited by jschiwal; 05-28-2005 at 05:34 AM.
 
Old 05-31-2005, 10:01 AM   #4
zum
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the help. The permissions for some reason were wrong.
 
  


Reply



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
init.d script error bad interpreter snowmedia Red Hat 8 10-01-2011 06:16 PM
bad interpreter???? yenonn Programming 4 09-25-2004 05:21 AM
Installing Oracle Apps 11i in Redhat 9 - Linux "bad interpreter" error msoares Linux - Newbie 4 07-14-2004 09:45 PM
bad interpreter error message ffenics2002 Linux - Software 2 04-15-2004 12:17 PM
bad interpreter penzilsinc Linux - Newbie 5 06-26-2002 01:51 PM

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

All times are GMT -5. The time now is 12:06 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