Date: Tue, 22 Sep 1998 20:04:28 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: "Jason C. Wells" <jcwells@u.washington.edu>, Patrick Gardella <patrick@cre8tivegroup.com> Cc: Ghulum Dastgir <Ghulam_Dastgir@uk.ibm.com>, freebsd-questions@FreeBSD.ORG Subject: Re: shells, users and X Message-ID: <19980922200428.C6192@scientia.demon.co.uk> In-Reply-To: <Pine.BSF.4.02A.9809220019580.9916-100000@s8-37-26.student.washington.edu> References: <XFMail.980921145504.patrick@cre8tivegroup.com> <Pine.BSF.4.02A.9809220019580.9916-100000@s8-37-26.student.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980922200428.C6192>