Resolved: Cannot execute /bin/bash: Permission denied

Dagmar d'Surreal dagmar.wants at nospam.com
Sat Jul 5 15:18:12 PDT 2003


On Fri, 2003-07-04 at 11:45, Albert Wagner wrote:
> On Fri, 4 Jul 2003 05:39:02 -0500
> Albert Wagner <alwagner at tcac.net> wrote:
> 
> Thanks to Luis.
> 
> The problem was the permissions on /lib.  Apparently, /bin/bash needs
> this and will report:
> 
> Cannot execute /bin/bash: Permission denied
> 
> if world permissions are not set to 5 on /lib.
> 
> Thanks to all who replied, both on BLFS and LFS.

For extra durability and insurance against your own foolishness (hey, if
you ever need this, you will have likely done something foolish) you
might want to consider building bash twice, once as /bin/bash the way
LFS does, and a second pass with bash built entirely statically (which
will make it large, but impossible to break, even if you rm -rf /lib)
into /bin/sh.
-- 
The email address above is just as phony as it looks, and for obvious reasons.
Instant messaging contact nfo: AIM: evilDagmar  Jabber: evilDagmar at jabber.org

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list