From owner-freebsd-questions@FreeBSD.ORG Sat Jan 10 18:20:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFDEF106564A for ; Sat, 10 Jan 2009 18:20:33 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 9F0A18FC1B for ; Sat, 10 Jan 2009 18:20:33 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id n0AIKFMm007095; Sat, 10 Jan 2009 13:20:15 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id n0AIKFO3007094; Sat, 10 Jan 2009 13:20:15 -0500 (EST) (envelope-from jerrymc) Date: Sat, 10 Jan 2009 13:20:15 -0500 From: Jerry McAllister To: Garance A Drosihn Message-ID: <20090110182015.GB7052@gizmo.acns.msu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: David Christensen , freebsd-questions@freebsd.org Subject: Re: FreeBSD 7.0-RELEASE-i386 will changing root shell break anything? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2009 18:20:34 -0000 On Fri, Jan 09, 2009 at 08:46:54PM -0500, Garance A Drosihn wrote: > At 2:09 PM -0800 1/4/09, David Christensen wrote: > > > >I have changed the root shell to Bash on another machine I use as a CVS > >server and haven't noticed any issues yet, but I've been wondering if > >I'm setting myself up for problems by doing so. > > > > > >Does anybody know if it's okay to change the root shell on FreeBSD > >7.0-RELEASE-i386? Why do that? Just create your own root account, put what you want for a shell on that account and use it. Use vipw. Copy the root line and then change the _second_ one to be your own root id - say, Rgad - and make a loging in directory for it. Change the directory part of the pw entry to be that and the the shell to be what you want. Then change the password to be what you want or use some pwvault utility or whatever. Just make sure you specify the second root account (Rgad) when doing so or it will change the real root's password. ////jerry > > What I do is add the following lines to /root/.login : > > if ($?prompt) then > if ( -x /usr/local/bin/bash ) then > # echo "Switching to bash" > setenv SHELL /usr/local/bin/bash > exec /usr/local/bin/bash -login > endif > endif > > I've been doing this for at least 10 years. I haven't had any > problems with it, but Your Mileage Might Vary. > > -- > Garance Alistair Drosehn = gad@gilead.netel.rpi.edu > Senior Systems Programmer or gad@freebsd.org > Rensselaer Polytechnic Institute or drosih@rpi.edu > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"