From owner-freebsd-security@FreeBSD.ORG Fri Jul 9 10:33:43 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B13B716A4CE for ; Fri, 9 Jul 2004 10:33:43 +0000 (GMT) Received: from cowbert.2y.net (d46h180.public.uconn.edu [137.99.46.180]) by mx1.FreeBSD.org (Postfix) with SMTP id 143E843D48 for ; Fri, 9 Jul 2004 10:33:43 +0000 (GMT) (envelope-from sirmoo@cowbert.net) Received: (qmail 4388 invoked by uid 1001); 9 Jul 2004 10:33:42 -0000 Date: Fri, 9 Jul 2004 06:33:42 -0400 From: "Peter C. Lai" To: Anders Dahlqvist Message-ID: <20040709103342.GA2842@cowbert.net> References: <200407091158.35803.anders@kommandoraden.info> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407091158.35803.anders@kommandoraden.info> User-Agent: Mutt/1.5.6i cc: freebsd-security@freebsd.org Subject: Re: Root users shell == no existant shell /bin/bash X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 10:33:43 -0000 On Fri, Jul 09, 2004 at 11:58:35AM +0200, Anders Dahlqvist wrote: > torsdagen den 8 juli 2004 17.29 skrev Brandon Grace: > > I made a mistake setting my shell and have set the root users shell to > > /bin/bash instead of /bin/sh. I am curiuos if anyone knows how to fix this. > > The machines is FreeBSD 4.8-RELEASE-p4 and does not have sudo only su. > > _______________________________________________ > > freebsd-security@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-security > > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org" > > ...and I gather that "su - toor" doesn't work either for some reason or other? toor has a disabled (*) password by default. What Brannon should have done was set a password for toor in the beginning, without mucking around with root's shell. But as a rule of thumb, you're probably superuser way too much if you develop an urge to change it shell anyway.