From: "B. James Phillippe" <bryan@terran.org>
To: axp-list@redhat.com
Subject: Re: Help! Can't recover!
Date: Tue, 12 Jan 1999 10:15:04 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.04.9901121003040.12576-100000@earth.terran.org> (raw)
In-Reply-To: <199901121749.MAA03743@adder.cs.Virginia.EDU>
On Tue, 12 Jan 1999, Greg Lindahl wrote:
> > [Yes, root uses tcsh- it makes things easier. Is this a Bad Idea?]
>
> That's novice sysadmin mistake #1 -- it's wrong. Create a different
> uid=0 user if you want tcsh for root and are too lazy to type tcsh
> after you log in.
I wouldn't go so far as to say it's _wrong_. Maybe non-standard, but
certainly okay, if you know what you are doing.
What I do is have bash for root and tcsh for my normal user. I never log
in as root. But as my normal user, if I need temporary root privs I will
"su -m" and then keep my tcsh shell. I'd recommend that over making the
root shell tcsh, but it's certainly legal.
> In this case the problem is that your tcsh is linked against
> /usr/lib/libcurses, which obviously can't be found. A shell usable by
My tcsh has never been linked against anything in /usr, even as far back as
RedHat 4.2:
% ldd /bin/sh # is just a symlink to bash, as it should be for Linux
libtermcap.so.2 => /lib/libtermcap.so.2 (0x40009000)
libc.so.5 => /lib/libc.so.5 (0x4000c000)
% ldd /bin/tcsh
libtermcap.so.2 => /lib/libtermcap.so.2 (0x40009000)
libc.so.5 => /lib/libc.so.5 (0x4000c000)
% ldd /bin/bash
libtermcap.so.2 => /lib/libtermcap.so.2 (0x40009000)
libc.so.5 => /lib/libc.so.5 (0x4000c000)
%
It's possible it is trying to dlopen() something in /usr/lib, and in that
case, yes, it would be wrong to use it. But I'm not sure that it is.
Hmmm... I just checked my RedHat-5x box, and although tcsh is still only
linked to things in /lib, it *is* linked to more libs than bash is.
Perhaps it has become increasingly unwise to use tcsh for root shells as
time progresses. In that case, I am convinced: only use bash for root
unless you really know what you are getting into.
> root should only be linked against stuff that is always there at any
> point in the boot process. On my 5.2 system, bash is only linked
> against stuff in /lib, ditto for tcsh -- it uses termcap, which is in
> /lib.
This is correct. tcsh should be as viable as bash at boot time. I don't
know why his isn't, but it wouldn't matter for single user; in single user
mode, init will dump you to /bin/sh regardless of what your shell is.
-bp
--
B. James Phillippe . bryan@terran.org
Linux Engineer/Admin . http://www.terran.org/~bryan
Member since 1.1.59 . finger:bryan@earth.terran.org
next prev parent reply other threads:[~1999-01-12 18:37 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-12 16:56 Help! Can't recover! Adam C. Powell, IV
1999-01-12 17:06 ` warp
1999-01-12 17:13 ` warp
1999-01-12 17:43 ` Adam C. Powell, IV
1999-01-12 17:49 ` Greg Lindahl
1999-01-12 18:15 ` B. James Phillippe [this message]
1999-01-12 18:31 ` Greg Lindahl
1999-01-12 18:32 ` Adam C. Powell, IV
1999-01-12 18:02 ` B. James Phillippe
1999-01-12 18:29 ` Michal Jaegermann
1999-01-12 20:11 ` Adam C. Powell, IV
1999-01-12 20:50 ` Paul Tomblin
1999-01-13 9:03 ` Martin Ostermann
1999-01-12 20:52 ` Michal Jaegermann
1999-01-12 21:53 ` Adam C. Powell, IV
1999-01-12 22:49 ` Michal Jaegermann
1999-01-12 19:04 ` Bob Taylor
1999-01-12 18:04 ` Michal Jaegermann
1999-01-12 18:48 ` Adam C. Powell, IV
1999-01-12 20:33 ` Michal Jaegermann
1999-01-14 5:40 ` Jonathan Vafai
1999-01-16 20:58 ` geerten kuiper
1999-01-19 15:53 ` Adam C. Powell, IV
1999-01-19 17:29 ` Michal Jaegermann
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