*BSD News Article 96794


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!uunet!in3.uu.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.internetmci.com!btnet!azure.xara.net!xara.net!news.genuity.net!not-for-mail
From: "Rober J. Lee" <bobl@jcis.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How can I make ksh as a default shell?
Date: Mon, 02 Jun 1997 14:56:19 -0700
Organization: JCIS
Lines: 17
Message-ID: <33934182.9FC649DB@jcis.com>
Reply-To: bobl@jcis.com
NNTP-Posting-Host: cherry.stars.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
X-Mailer: Mozilla 4.0b5 [en] (WinNT; I)
X-Priority: 3 (Normal)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42116

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.