From owner-freebsd-questions Tue Dec 12 0:17:24 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 12 00:17:21 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id B1EC137B400; Tue, 12 Dec 2000 00:17:20 -0800 (PST) Received: from [195.11.243.26] (helo=Debug) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 145kch-000Oip-00; Tue, 12 Dec 2000 08:17:19 +0000 To: Doug Barton , Cliff Sarginson , questions@FreeBSD.ORG From: Cliff Sarginson Subject: Re: Root and the C Shell Date: Tue, 12 Dec 2000 08:17:19 GMT X-Mailer: www.webmail.nl.demon.net X-Sender: postmaster@btvs.demon.nl X-Originating-IP: 192.250.24.58 Message-Id: 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. :) Ok, thanks for the reply. Obviously any root shell has got to be a statically linked binary otherwise you can get into problems in emergency situations. My question was really to find out if anything in the system relied on the root shell being csh - to save me having to find out the hard way ! Personally the default of "csh" as the root shell is arcane and one of the hangover's from BSD that FreeBSD could do well to dump. There ought to be some sort of law against the C shell.. lol (ducks the flamethrowers!), what people do in their private lives is their concern but public displays of the C shell I find quite outrageous .. (hey guys that was a joke!) Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message