From owner-freebsd-questions@FreeBSD.ORG Tue Jul 6 12:56:11 2010 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 DAE54106564A for ; Tue, 6 Jul 2010 12:56:11 +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 9FB8E8FC13 for ; Tue, 6 Jul 2010 12:56:11 +0000 (UTC) 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 o66CpDqA055023; Tue, 6 Jul 2010 08:51:13 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id o66CpDIx055022; Tue, 6 Jul 2010 08:51:13 -0400 (EDT) (envelope-from jerrymc) Date: Tue, 6 Jul 2010 08:51:13 -0400 From: Jerry McAllister To: Luca Renaud Message-ID: <20100706125113.GD54854@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: freebsd-questions@freebsd.org Subject: Re: Get access to csh (default freebsd shell) for root to solve login problem. 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: Tue, 06 Jul 2010 12:56:11 -0000 On Sun, Jul 04, 2010 at 05:02:59PM +0100, Luca Renaud wrote: > The root shell is now bash,but I was unaware that bash was not > self-contained(it depends at least of libintl.so.8), > and doing some upgrades with ports I erased libintl.so.8,now I cannot access > the root account because bash is > not operational and I need root access to install again libintl.so.8,or any > other way to solve the problem. > So,how can I get access to csh for root without having access to a root > shell(the previously defined bash does > not work,and I need root access to change the shell for the root acount). Just type /bin/csh on the command line or put /bin/csh in /etc/passwd in the shell field or put #!/bin/csh as the first line in a script. ////jerry > > > Thanks. > _______________________________________________ > 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"