From owner-freebsd-questions Tue Sep 22 12:15:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA07760 for freebsd-questions-outgoing; Tue, 22 Sep 1998 12:15:49 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA07659 for ; Tue, 22 Sep 1998 12:15:13 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.04 #1) id 0zLXjg-0001q9-00; Tue, 22 Sep 1998 20:04:28 +0100 Date: Tue, 22 Sep 1998 20:04:28 +0100 From: Ben Smithurst To: "Jason C. Wells" , Patrick Gardella Cc: Ghulum Dastgir , freebsd-questions@FreeBSD.ORG Subject: Re: shells, users and X Message-ID: <19980922200428.C6192@scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: User-Agent: Mutt/0.94.3i (FreeBSD 3.0-BETA i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jason C. Wells wrote: > As a side note, it is unadvisable to make root's shell bash in > /etc/passwd. > > If you have any trouble with the /usr filesystem you will be STUCK, STUCK, > STUCK. I learned this the hard way. ./configure --enable-static-link or something when making it. I have it installed as /bin/sbash, which I use as root's shell $ ldd /bin/bash /bin/bash: libtermcap.so.2 => /usr/lib/libtermcap.so.2 (0x280a2000) libc.so.3 => /usr/lib/libc.so.3 (0x280a7000) $ ldd /bin/sbash ldd: /bin/sbash: not a dynamic executable Should work OK ... > You might spawn bash from sh in .profile after performing a check to see > if /usr/local/bin/bash actually exists. This will get you bash during > login if it's there, but will let you use sh if bash is not there. This > will save you the agony and humiliation of having to break out the FIXIT > disc. Why should you need the fixit disk if your root shell is fucked? Just type `-s' at the boot prompt and it will let you start plain old /bin/sh. (Unless you've knackered that one as well :-) -- Ben Smithurst : ben@scientia.demon.co.uk : http://www.scientia.demon.co.uk/ PGP: 0x99392F7D - 3D 89 87 42 CE CA 93 4C 68 32 0E D5 36 05 3D 16 http://www.scientia.demon.co.uk/ben/pgp-key.html (or use keyservers) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message