From owner-freebsd-questions@FreeBSD.ORG Fri Dec 24 16:05:49 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 EA92C16A4CE for ; Fri, 24 Dec 2004 16:05:49 +0000 (GMT) Received: from smtpauth04.mail.atl.earthlink.net (smtpauth04.mail.atl.earthlink.net [209.86.89.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFBF843D1F for ; Fri, 24 Dec 2004 16:05:49 +0000 (GMT) (envelope-from algould@datawok.com) Received: from [206.255.31.21] (helo=[192.168.63.10]) by smtpauth04.mail.atl.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 4.34) id 1Chrwq-0004Bk-VV; Fri, 24 Dec 2004 11:05:49 -0500 From: "Andrew L. Gould" To: freebsd-questions@freebsd.org, Andy Firman Date: Fri, 24 Dec 2004 10:06:46 -0600 User-Agent: KMail/1.6.2 References: <41C6EE24.4080606@vilot.com> <200412202154.iBKLsrt13676@clunix.cl.msu.edu> <20041224155358.GB15993@akroteq.com> In-Reply-To: <20041224155358.GB15993@akroteq.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200412241006.47078.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69563f9fea00a6dd62bc9b398b9c29e4fcb93867ae6428c3469d350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 206.255.31.21 Subject: Re: bash - superuser 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: Fri, 24 Dec 2004 16:05:50 -0000 On Friday 24 December 2004 09:53 am, Andy Firman wrote: > On Mon, Dec 20, 2004 at 04:54:51PM -0500, Jerry McAllister wrote: > > Then the thing to do is create another root account and make the > > default shell for that one be bash, leaving the root root be > > /bin/sh. > > So for those of us that want to go back to the way things should be, > (leaving root shell be /bin/sh) I fire up vipw and change this: > > root:*:0:0:Charlie &:/root:/usr/local/bin/bash > > to this: > > root:*:0:0:Charlie &:/root:/bin/sh > > Right? > > Then I keep using sudo all the time. But if I need to do some big > work as root, I can su to root and get bash simply by typing: > > /usr/local/bin/bash > > Right? > > > Just want to be clear on this. > > Thanks. I think that should do it. If you wanted root to use bash all the time, couldn't you compile/install a static version into /bin/? I've never done it; but I know that NetBSD has some statically linked shells in their ports (pkgsrc) that install to /bin/, so I would think it should be possible. Best of luck, Andrew Gould