From owner-freebsd-questions Thu Sep 16 20:27:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from rock.ghis.net (rock.ghis.net [209.222.164.7]) by hub.freebsd.org (Postfix) with ESMTP id 89A1C14EBD for ; Thu, 16 Sep 1999 20:27:28 -0700 (PDT) (envelope-from jim@blues.ghis.net) Received: from blues.ghis.net (jim@dialup-canax3121.mpx.com.au [198.142.172.121]) by rock.ghis.net (8.9.3/8.9.3) with ESMTP id UAA58567; Thu, 16 Sep 1999 20:27:21 -0700 (PDT) Received: (from jim@localhost) by blues.ghis.net (8.9.3/8.9.3) id NAA01568; Fri, 17 Sep 1999 13:27:16 +1000 (EST) (envelope-from jim) Date: Fri, 17 Sep 1999 13:27:15 +1000 From: Jim Mock To: Michael Henry Cc: questions@FreeBSD.ORG Subject: Re: Changing shell Message-ID: <19990917132715.A1509@blues.ghis.net> Reply-To: jim@blues.ghis.net References: <128e5100.251309c3@aol.com> <19990917031515.4383B14DDB@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19990917031515.4383B14DDB@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Reply sent to -questions, this doesn't belong on -newbies] On Fri, 17 Sep 1999 at 13:15:06 +1000, Michael Henry wrote: > > > Does anyone know how to change the root shell from csh to bash? The default root shell is sh, not csh. > It is my understanding that changing root's shell is A Bad Thing. This has been covered a *ton* of times on the lists. It's not a big deal with FreeBSD because you can always go into single-user mode where you're prompted for a shell if you mess up root's shell. > You shouldn't be running as root often enough for it to be an > inconvenience anyway. Good point :-) > There is an account "toor" which also has UID 0, and uses bash > as it's login shell. Not by default. It also uses sh. What I usually do is set a password for toor, leave it's shell as sh, and change root's to tcsh so if needed, I can fall back to toor. To answer the original question, man chfn, man chsh, and man vipw. Take your pick :-) - Jim -- - Jim Mock - jim@blues.ghis.net - systems administrator - ghis.NET - - work: http://www.ghis.net/ - personal: http://www.ghis.net/~jim/ - - FreeBSD 'zine: http://www.freebsdzine.org/ - jim@freebsdzine.org - - The FreeBSD Project -- http://www.FreeBSD.org/ - jim@FreeBSD.org - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message