From owner-freebsd-questions Mon Dec 11 23:10: 5 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 11 23:10:03 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from dt051n37.san.rr.com (dt051n37.san.rr.com [204.210.32.55]) by hub.freebsd.org (Postfix) with ESMTP id 07F3337B400 for ; Mon, 11 Dec 2000 23:10:03 -0800 (PST) Received: from FreeBSD.org (master [10.0.0.2]) by dt051n37.san.rr.com (8.9.3/8.9.3) with ESMTP id XAA56678; Mon, 11 Dec 2000 23:10:00 -0800 (PST) (envelope-from DougB@FreeBSD.org) Message-ID: <3A35CF48.C2869B54@FreeBSD.org> Date: Mon, 11 Dec 2000 23:10:00 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Cliff Sarginson Cc: questions@FreeBSD.org Subject: Re: Root and the C Shell References: <00121017490501.01067@buffy> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Cliff Sarginson wrote: > > Hello, > A simple question, I loathe and detest the C shell. > Will anything break if I change root's login shell to > be something (anything!) other than csh ? The canonical answer to this question is that changing it to /bin/sh is ok, but changing it to something else not built with the system is a bad idea. Although, there are a lot of people who will tell you that they do it, so it's ok. Personally, I have changed all my users (root, and unprivileged) to use /bin/sh as their shell, and in my .profile's I have this as the first line: [ -x /usr/local/bin/bash ] && exec /usr/local/bin/bash --rcfile $HOME/.bash_profile It has saved my ass, or at least saved me lots of time fixing stuff on more than one occasion. I have talked to some truly paranoid people who do something like: if /usr/local/bin/bash -version >/dev/null; then exec /usr/local/bin/bash --rcfile $HOME/.bash_profile fi I actually had one situation a long time ago where bash was there, but it wasn't runnable due to a library problem, so the above would have helped. However, making changes like that takes me a long time to propogate across machines, so I haven't bothered yet... maybe it's time for a .script spring, errr.. fall, ...errr... winter cleaning. :) Good luck, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message