Subject: Re: init: can't exec /bin/bash for /etc/rc: Exec format error
To: None <felix@students.poly.edu>
From: Ian Zagorskih <ianzag@megasignal.com>
List: current-users
Date: 06/25/2003 11:57:52
On Wednesday 25 June 2003 02:24, felix zaslavskiy wrote:
> On Tue, 2003-06-24 at 22:17, Brian Rose wrote:
> > I looked throughout /etc /etc/rc.d /usr/pkg/etc and /usr/etc/rc.d for
> > bash references, but the only ones I found are in the passwd and
> > master.passwd files for some users.
> >
> > I did move bash to /bin so that I could have access to it in single u=
ser
> > mode. But I did not modify root to use bash by default. I remember
> > hearing of dire consequenses to those modifying the default root opti=
ons.
>
> I like to know what these dire consequences are because the first thing
> i do when i install netbsd is install bash and change default shell for
> root to /usr/pkg/bin/bash
>
> I never had a problem on three machines i been using.
>

For bash installed from packages:

---
bash-2.05$ ldd /usr/pkg/bin/bash
/usr/pkg/bin/bash:
         -ltermcap.0 =3D> /usr/lib/libtermcap.so.0
         -lintl.0 =3D> /usr/lib/libintl.so.0
         -lc.12 =3D> /usr/lib/libc.so.12
---

=2E...so if you do not have access @/usr/lib you cannot run bash :)

// wbr