[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: root's shell
On Thu, 3 Jul 1997, Ira Abramov wrote:
>
> in one of the Linux dinners we discussed th reasons for keeping root under
> a simple bash shell, and noone could give a good excuse other than
> "because in Sun they do it like that". no I see there are a few more
> reasons, other than /usr/bin possibly being mounted from NFS, /usr/lib is
> needed too...
>
> is csh (tcsh) on linux systems staticly linked? how can one tell?
This is how you can see with what shared libs it's linked.
--Ariel
ariel@fireball:~> ldd /bin/*sh
/bin/ash:
libc.so.5 => /lib/libc.so.5.4.23
/bin/bash:
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libdl.so.1 => /lib/libdl.so.1.8.5
libc.so.5 => /lib/libc.so.5.4.23
/bin/csh:
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libc.so.5 => /lib/libc.so.5.4.23
/bin/sh:
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libdl.so.1 => /lib/libdl.so.1.8.5
libc.so.5 => /lib/libc.so.5.4.23
/bin/tcsh:
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libc.so.5 => /lib/libc.so.5.4.23
/bin/zsh:
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libc.so.5 => /lib/libc.so.5.4.23
>
>
> ---------- Forwarded message ----------
> Date: Thu, 3 Jul 1997 07:28:37 -0700
> From: Brad Powell <brad.powell@WEST.SUN.COM>
> To: BUGTRAQ@NETSPACE.ORG
> Subject: Re: Solaris 2.5 syslog startup failure
>
> Lauren writes:
> >The file /etc/init.d/syslog in Solaris 2.5.1 (Sparc version, latest
> >patch set), does not identify which shell should execute it.
> >If root is set to use csh (instead of sh or ksh), syslog will fail to
> >start.
>
> Whoa here. I agree its a bug but be *extreamly* shy about using anything
> except /sbin/sh for root's shell.. Why? well the files in /sbin are different
> than /usr/bin for a reason. They are -statically linked- Unless you have
> a statically linked version of csh you had better think twice about using
> it for roots shell. The first time you can't mount /usr(/lib) because of
> a problem and need to boot single user mode to fix it, you will be glad
> you have a static version of the shell.
>
> Brad
>
+---------------------------------------------------------+
| Ariel Biener |
| e-mail: ariel@post.tau.ac.il Work ph: 03-6406086 |
+---------------------------------------------------------+
References: