From owner-freebsd-questions@FreeBSD.ORG Tue Jan 13 01:21:23 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0092016A4CE for ; Tue, 13 Jan 2004 01:21:23 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61F4C43D1D for ; Tue, 13 Jan 2004 01:21:21 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp104-184.lns1.adl1.internode.on.net [150.101.104.184])i0D9LFxC090885; Tue, 13 Jan 2004 19:51:16 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Charles Swiger , fbsd_user@a1poweruser.com Date: Tue, 13 Jan 2004 19:51:15 +1030 User-Agent: KMail/1.4.3 References: <410963BE-452F-11D8-A7A0-003065ABFD92@mac.com> In-Reply-To: <410963BE-452F-11D8-A7A0-003065ABFD92@mac.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200401131951.15394.malcolm.kay@internode.on.net> cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: set env editor global X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 09:21:23 -0000 On Tue, 13 Jan 2004 05:13, Charles Swiger wrote: > On Jan 12, 2004, at 10:37 AM, fbsd_user wrote: > > On an new install with only an root account, I want to set the > > command line prompt prefix and the default editor for all new users > > and also the root account. > > > > What file do I put the 'set env' commands in to make this happen > > globally? > > Look at /etc/profile and /etc/csh.cshrc. > > [ Note that root has /bin/sh as it's shell, whereas normal users will > be using csh by default. This matters because different shells have > different syntax and config file locations. ] I believe your note is somewhat out of date. 4.x at least as far back as 4.1 has had /bin/csh (actually statically linked tcsh) as the default she= ll=20 for root. (But you possibly still end up with sh if you boot into single=20 user mode.) I don't know about 5.x, but would be a little surprised if the default ha= s reverted to sh. Malcolm Kay=20