Date: Sat, 30 Oct 1999 11:55:11 +1000 From: Phil Homewood <philh@mincom.com> To: Alfred Perlstein <bright@wintelcom.net> Cc: J McKitrick <jcm@dogma.freebsd-uk.eu.org>, freebsd-questions@FreeBSD.ORG Subject: Re: root shell/toor shell Message-ID: <19991030115511.A10041@mincom.com> In-Reply-To: <Pine.BSF.4.05.9910291615290.12797-100000@fw.wintelcom.net>; from Alfred Perlstein on Fri, Oct 29, 1999 at 04:17:51PM -0700 References: <Pine.BSF.4.02A.9910281617570.98407-100000@dogma.freebsd-uk.eu.org> <Pine.BSF.4.05.9910291615290.12797-100000@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991030115511.A10041>