From owner-freebsd-questions@FreeBSD.ORG Wed Dec 17 20:49:45 2008 Return-Path: Delivered-To: questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A2F91065673 for ; Wed, 17 Dec 2008 20:49:45 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id 6B72A8FC08 for ; Wed, 17 Dec 2008 20:49:45 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay14.apple.com (relay14.apple.com [17.128.113.52]) by mail-out4.apple.com (Postfix) with ESMTP id 2BD524AFA0E6; Wed, 17 Dec 2008 12:49:45 -0800 (PST) Received: from relay14.apple.com (unknown [127.0.0.1]) by relay14.apple.com (Symantec Brightmail Gateway) with ESMTP id 1553A28086; Wed, 17 Dec 2008 12:49:45 -0800 (PST) X-AuditID: 11807134-a4853bb000000ff0-43-494965e86066 Received: from cswiger1.apple.com (cswiger1.apple.com [17.227.140.124]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay14.apple.com (Apple SCV relay) with ESMTP id F2F5928082; Wed, 17 Dec 2008 12:49:44 -0800 (PST) Message-Id: <1C43A58A-F629-4BF9-8FF8-4942DA509570@mac.com> From: Chuck Swiger To: Jonathan Moore In-Reply-To: <000301c96083$cf622db0$6e268910$@net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Wed, 17 Dec 2008 12:49:44 -0800 References: <000301c96083$cf622db0$6e268910$@net> X-Mailer: Apple Mail (2.929.2) X-Brightmail-Tracker: AAAAAA== Cc: questions@FreeBSD.org Subject: Re: su qeustion 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: Wed, 17 Dec 2008 20:49:45 -0000 On Dec 17, 2008, at 12:12 PM, Jonathan Moore wrote: > I just installed FreeBSD with Gnome. And I changed the shell when I > was > logged ito the terminal as su root. Now when I try to log in to su > it asks > for a password and I get "su: /usr/bin/csh: No such file or > directory" how > can I change it back. Reboot into single-user mode, which will give you a /bin/sh root shell, run vipw, and fix the root shell to be /bin/csh. Or, if you have sudo available, you can use that directly to get a root shell and fix it without needing to hit single-user mode.... Regards, -- -Chuck