From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11215 invoked from network); 12 Jan 1999 18:37:03 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 12 Jan 1999 18:37:03 -0000 Received: from earth.terran.org (bryan@earth.terran.org [208.152.24.33]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA04455 for ; Tue, 12 Jan 1999 13:15:06 -0500 Received: from localhost (bryan@localhost) by earth.terran.org (8.8.7/8.8.9) with ESMTP id KAA12864 for ; Tue, 12 Jan 1999 10:15:04 -0800 Date: Tue, 12 Jan 1999 10:15:04 -0800 (PST) From: "B. James Phillippe" To: axp-list@redhat.com Subject: Re: Help! Can't recover! In-Reply-To: <199901121749.MAA03743@adder.cs.Virginia.EDU> Message-ID: Organization: terran.org/darkforest.org X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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