[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: root's shell
Like so:
psychodad:~> ldd `which ldd`
statically linked (ELF)
psychodad:~> ldd `which bash`
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libc.so.5 => /lib/libc.so.5.4.23
psychodad:~> ldd `which tcsh`
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libc.so.5 => /lib/libc.so.5.4.23
psychodad:~> ldd `which csh`
libtermcap.so.2 => /lib/libtermcap.so.2.0.8
libc.so.5 => /lib/libc.so.5.4.23
psychodad:~>
Regards,
Nir.
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?
>
>
> ---------- 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 (insteadof 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
>
>
--
Nir Soffer * scorpios@cs.huji.ac.il * http://www.cs.huji.ac.il/~scorpios/
"From the moment I picked your book up until I put it down I was
convulsed with laughter. Some day I intend reading it."
-- Groucho Marx, from "The Book of Insults"
Mail me with the subject 'get pgp key' for my PGP Public Key
References: