Date: Tue, 30 Oct 2007 18:06:13 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Stephen Allen <p0036343@brookes.ac.uk> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Dangers of using a non-base shell Message-ID: <20071030170613.GC54116@slackbox.xs4all.nl> In-Reply-To: <472647A0.3030009@brookes.ac.uk> References: <472647A0.3030009@brookes.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--NKoe5XOeduwbEQHU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 29, 2007 at 08:50:40PM +0000, Stephen Allen wrote: > It's been drawn to my attention not to use bash from the ports collection= ,=20 > because if one of it's dependencies (gettext or libiconv) fails or is=20 > updated significantly, it could break, and prevent login. The suggested= =20 > solution was to use a base shell (such as sh) and append 'bash -l' to .sh= rc=20 > to automatically enter bash. This is only a problem for root. If you want to use bash as root you should compile it statically. See below. > Would it be a better idea to use the pre-compiled binary for bash? And i= f=20 > I did so, could I be alerted to updates as easy as using 'pkg_version -v'= =20 > when checking if any ports need updating? You can define WITH_STATIC_BASH when you're building bash, so the binary is self-contained. But if you're starting in single user mode, only / will be mounted. So if you have /usr or /usr/local on a separate partition, you'd be screwed. That is why root should only use a shell that's in the / partition. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --NKoe5XOeduwbEQHU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHJ2SFEnfvsMMhpyURAmy9AJ9V+Trh9WndL02Ldb1Uc5t3O2X2yQCfdS1p wB9RNBeldVkhNnkrFut5ptA= =rLm0 -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071030170613.GC54116>