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: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: Ksh for root? Date: 1999/01/10 Message-ID: <778ri1$sj4$1@node2.nodak.edu>#1/1 X-Deja-AN: 430708771 Content-Transfer-Encoding: 7bit References: <3696133A.5F417493@unixcenter.ericsson.se> <3697621A.FA174922@EUnet.yu> Content-Type: text/plain; charset=US-ASCII X-Complaints-To: abuse@nodak.edu X-Trace: node2.nodak.edu 915927425 29284 134.129.106.23 (10 Jan 1999 00:17:05 GMT) Organization: North Dakota Higher Education Computing Network (NDHECN) Mime-Version: 1.0 NNTP-Posting-Date: 10 Jan 1999 00:17:05 GMT Newsgroups: comp.unix.osf.osf1 In article <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. Historically on most versions of Unix that was true (/bin/sh was static), but that's not true on Digital Unix: 05:14pm dogbert autodeps$odump -Dl /bin/sh ***LIBRARY LIST SECTION*** Name Time-Stamp CheckSum Flags Version /bin/sh: libc.so Dec 29 17:09:30 1997 0x5e955f9b 0 osf.1 In fact, most of the stuff in /sbin is not statically linked either. libc.so resides in the root filesystem (in /shlib) so it's available whenver the root filesystem is available, but there still is that chance that if something horrible goes wrong with your shared C library (like during the patch process) you may not even be able to get a working shell. On Digital Unix init always starts the Bourne shell when in single user mode, so I've been pretty comfortable setting root's shell to ksh (a good compromise) and moving root's home directory to /root (on /, of course) on all our DU machines. Tim -- Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu Information Technology Services (701) 231-1076 (Voice) Room 242-J1, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164