*BSD News Article 93535


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.aone.net.au!inferno.mpx.com.au!news.unimelb.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.se.dataphone.net!nntp.uio.no!newsfeeds.sol.net!worldnet.att.net!newsfeed.nacamar.de!fu-berlin.de!news.belwue.de!rubin.noc.dfn.de!schweikh
From: schweikh@rubin.noc.dfn.de (Jens Schweikhardt)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: /bin/sh -> /usr/local/bin/bash won't boot
Date: 14 Apr 1997 12:12:22 GMT
Organization: Regional Network of Baden-Wuerttemberg, Stuttgart, FRG
Lines: 31
Message-ID: <5it6v6$efp$1@news.belwue.de>
References: <3350EBA5.26EB8E3B@airmail.net> <5isurg$5j7@ui-gate.utell.co.uk>
NNTP-Posting-Host: rubin.noc.dfn.de
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39056

In article <5isurg$5j7@ui-gate.utell.co.uk> brian@awfulhak.org, brian@utell.co.uk writes:
# In article <3350EBA5.26EB8E3B@airmail.net>,
# 	Phil Crown <pcrown@airmail.net> writes:
# > I installed bash2 from the ports collection, then made a symbolic link
# > like
# > 
# > ln -s /bin/sh /usr/local/bin/sh
# 
# Do you mean "ln -s /usr/local/bin/bash /bin/sh" ?
 
This is a *bad* idea, IMHO. /bin/sh is needed shortly after booting,
but before /usr or /usr/local may be mounted. You can shoot yourself
in the foot this way.

# > Now the computer won't boot.
 
Bang! :-)

Make sure you have a statically linked /bin/sh (because if
it's dynamically linked and /usr/lib/lib* ist not mounted
yet you also shoot your other foot) and boot again.

If you want another shell for root, add a new user with uid 0
and your favorite shell. Isn't user toor already intended for
this use?


	Jens
--
Jens Schweikhardt  http://www.uni-stuttgart.de/People/schweikhardt/home.html
SIGSIG -- signature too long (core dumped)