From owner-freebsd-questions Fri Oct 29 18:55:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from blockhead.mincom.com (blockhead1.mincom.com [203.55.175.241]) by hub.freebsd.org (Postfix) with ESMTP id F3D9B14D38 for ; Fri, 29 Oct 1999 18:55:19 -0700 (PDT) (envelope-from philh@mincom.com) Received: (from uucp@localhost) by blockhead.mincom.com (8.9.3/8.9.3) id LAA95193; Sat, 30 Oct 1999 11:55:16 +1000 (EST) (envelope-from philh@mincom.com) Received: from porthole.mincom.oz.au(172.17.100.2) via SMTP by blockhead.mincom.oz.au, id smtpdt95191; Sat Oct 30 11:55:11 1999 Received: (from philh@localhost) by porthole.mincom.oz.au (8.8.8/8.8.5) id LAA12439; Sat, 30 Oct 1999 11:55:11 +1000 (EST) Date: Sat, 30 Oct 1999 11:55:11 +1000 From: Phil Homewood To: Alfred Perlstein Cc: J McKitrick , freebsd-questions@FreeBSD.ORG Subject: Re: root shell/toor shell Message-ID: <19991030115511.A10041@mincom.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: ; from Alfred Perlstein on Fri, Oct 29, 1999 at 04:17:51PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > In re changing root's/toor's shell, why not just put som,e code in > your .profile/.cshrc that conditionally automagically exec's zsh/bash > if it's available? :) > > if [ -x /usr/local/bin/zsh ] ; then > exec /usr/local/bin/zsh ; > fi > > it's a lot easier and safer. That one caught me out once, in an environment where /usr/local/bin was NFS mounted across subtly different machines, and zsh was broken on some. My solution: [ -x /usr/local/bin/zsh ] && /usr/local/bin/zsh -c /bin/true && \ exec /usr/local/bin/zsh -l -- Phil Homewood DNRC email: philh@mincom.com Postmaster and BOFH Mincom Ltd phone: +61-7-3303-3524 Brisbane, QLD Australia fax: +61-7-3303-3269 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message