Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.nl.innet.net!INnl.net!feed1.news.innet.be!INbe.net!stns.news.pipex.net!warm.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet From: brian@shift.utell.net (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How can I make ksh as a default shell? Date: 3 Jun 1997 11:33:30 GMT Organization: Awfulhak Ltd. Lines: 33 Message-ID: <5n0vea$909@ui-gate.utell.co.uk> References: <33934182.9FC649DB@jcis.com> Reply-To: brian@awfulhak.org, brian@utell.co.uk NNTP-Posting-Host: shift.utell.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42155 In article <33934182.9FC649DB@jcis.com>, "Rober J. Lee" <bobl@jcis.com> writes: > I checked out my .profile and rc scripts. Every scripts run fine with > ksh. Then I tried a quick and dirty way by moving ksh to /bin and > renamed the original sh as xsh and ksh as sh. When I reboot, however, I > am getting the error message "Couldn't open /usr/libexe/ld.so. Enter > pathname of shell or RETURN for sh:". If I enter /bin/xsh, it will find > the original sh, but in a single user mode. In this single user mode, if > I try to change the names back, then I get the read-only mode error > message. > > So I need two answers. First is how can I restore this, so that I can go > back to the original configuration (without porting the entire BSD > again!). Second question is how can I make ksh as a default shell and an > only shell (I have a situation that I can't have sh or csh in the > system. Don't ask me why!) in the system. > > Thanks for the kind helps. To recover, do the following: # mount -u -t nonfs -a # cd /bin # mv xsh sh # exit You must build ksh as a static binary - that is, on the load line in your make file, include the "-static" switch. -- Brian <brian@awfulhak.org> <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour !