From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2dd1cc0659dcb87d X-Google-Attributes: gidfee84,public From: Charles M Richmond Subject: Re: Ksh for root? Date: 1999/01/09 Message-ID: <3697C45E.18C56E86@iisc.com>#1/1 X-Deja-AN: 430658655 Content-Transfer-Encoding: 7bit References: <3696133A.5F417493@unixcenter.ericsson.se> <3697621A.FA174922@EUnet.yu> X-Accept-Language: ja Content-Type: text/plain; charset=iso-2022-jp X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 915915873 198.5.5.5 (Sat, 09 Jan 1999 16:04:33 EDT) Organization: Integrated International Systems Corporation MIME-Version: 1.0 NNTP-Posting-Date: Sat, 09 Jan 1999 16:04:33 EDT Newsgroups: comp.unix.osf.osf1 Nikola Milutinovic wrote: > > Hans Westerback wrote: > > > > Hi, > > > > I've noticed that on some systems root has been changed to use korn > > shell. But earlier I have heard that root should always run Bourne > > shell. Is this something that has changed in later versions? Are there > > any problems with running korn shell? What's the official view? > > Officially, you should use "the most system" shell for root and those > are /bin/sh and /usr/bin/sh. The first is statically linked. The idea is > that root is the system account which is used only for system > administration. Both /bin/sh /usr/sbin/sh are dynamically linked. /bin/sh: COFF format alpha dynamically linked, demand paged executable or object module stripped - version 3.11-10 /usr/bin/sh: COFF format alpha dynamically linked, demand paged executable or object module stripped - version 3.11-10 The nonstripped version is: /sbin/sh: COFF format alpha demand paged executable or object module stripped - version 3.11-10 However the politically correct shell to use is the linked to ksh - /bin/posix/sh /bin/posix: total 392 12671 -rwxr-xr-x 2 bin bin 270336 Mar 29 1997 sh /bin: 12671 -rwxr-xr-x 2 bin bin 270336 Mar 29 1997 ksh > > I use ZSh on all of my machines for root, because I like it (I've had > couple of problems with it, but was able to fix them). The main argument > against using "non-Bourne shell" for root is that it may get broken. > That is why, on Digital UNIX, when in single user mode, root always gets > Bourne shell, regardless of what /etc/passwd says about it. > > So, use what you like. If it starts messing things up, do: /bin/sh -c > "YOUR COMMAND" and it should be still OK. > > Nix. -- *********************************************************************** * Charles Richmond Integrated International Systems Corporation * * cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net * * UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W * * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 * * (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 * ***********************************************************************