[Top][All Lists]

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

Re: #! /bin/sh bash problem

From: John B. Brown
Subject: Re: #! /bin/sh bash problem
Date: Sun, 30 Mar 2008 14:44:30 -0600
User-agent: Thunderbird (X11/20080213)

Dear Bob,

        Thank you for your answers.

Bob Proulx wrote:
John B. Brown wrote:
        Thank you for that reminder of my mortality.


Bob Proulx wrote:
Also, /usr/bin/bash is not a normal location for bash.  Normally bash
would reside in /bin/bash .  Perhaps you also have one there?

 ls -ld /bin/bash /usr/local/bin/bash

I suggested looking at /usr/local/bin/bash since that is another
typical location.

(23):% ls -ld /usr/bin/bash /bin/bash /usr/local/bash
/bin/ls: cannot access /usr/local/bash: No such file or directory

It is probably not an issue here but you looked at /usr/local/bash
instead of where I suggested.  It didn't exist.  I doubt the
/usr/local/bin/bash exists either.  But I wanted to note that these
were different paths.

        Actually, nothing exists in /usr/local/bin except space.

Personally, the alternative to growing old and senile is not acceptable.

-rwsrwsr-x 1 root root  604040 2007-09-21 16:16 /bin/bash*

How did that happen?  Fix that immediately, if not sooner.

chmod a=rx,u+w /bin/bash
Then also go check other files in your bin directory to make sure you
didn't have an errant command set them all.

That setuid/setgid to root was an interim stop-gap prior to asking for help; it is not usual.

-rwxr-xr-x 1 root root 2037410 2008-01-30 05:35 /usr/bin/bash*

That looks okay.  But it doesn't match your previous error message.
I assume you were continuing to make changes after your last message
because this one shouldn't have given a permission denied one.  I
expected to see that this wasn't executable at all.

Argh! I guess I get to REMOVE the bash I installed in error in that piece of junk location.

        So much for compiling by myself.

I must remember to set the proper --prefix in the configure process; dueling bashes just doesn't make it.

Careful when compiling and upgrading systems in place.  A breakage can
break your entire system to the point that you might not be able to
use it to fix itself.  Make sure you have a rescue process available.


I have rm'd all the symlinks to /bin/bash. I have remade all of them, including a symlink to /usr/bin/bash. If that doesn't finally fix this mess then there is no longer going to be a /usr/bin/bash, binary or link.

If this doesn't fill the bill I'll do a find and egrep for 2008 and bash. That will then give me a list of the stuff I need to remove from that tired compile from this past January.


        John B. Brown.
        358 High Street,
        Buffalo, Wyoming

"Freedom is not worth having if it does not include
the freedom to make mistakes"  Mahatma Gandhi
"It is useless to attempt to reason a man out of
what he was never reasoned into."  Jonathan Swift
"A man who does not know the truth is just an idiot but
a man who knows the truth and calls it a lie is a crook."
Bertolt Brecht
"If any question why we died,
tell them, because our fathers lied."  Rudyard Kipling

reply via email to

[Prev in Thread] Current Thread [Next in Thread]