Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Charles M Richmond <cmr@iisc.com>
Subject: Re: Ksh for root?
Date: 1999/01/09	[thread overview]
Message-ID: <3697C45E.18C56E86@iisc.com> (raw)
In-Reply-To: 3697621A.FA174922@EUnet.yu

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         *
***********************************************************************



  reply	other threads:[~1999-01-09  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-08  5:00 Ksh for root? Hans Westerback
1999-01-08  5:00 ` Waco Johnny D
1999-01-09  5:00 ` Nikola Milutinovic
1999-01-09  5:00   ` Charles M Richmond [this message]
1999-01-10  5:00   ` Tim Mooney
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox