From owner-freebsd-questions Tue Apr 9 15:10:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from primus.vsservices.com (primus.vsservices.com [63.66.136.75]) by hub.freebsd.org (Postfix) with ESMTP id C116137B41D for ; Tue, 9 Apr 2002 15:10:37 -0700 (PDT) Received: from prime.vsservices.com (conr-adsl-dhcp-29-224.txucom.net [209.34.29.224]) by primus.vsservices.com (8.11.3/8.11.3) with SMTP id g39MAUu35590; Tue, 9 Apr 2002 17:10:30 -0500 (CDT) (envelope-from gclarkii@vsservices.com) Date: Tue, 9 Apr 2002 17:10:32 -0500 From: GB Clark To: Brendan McAlpine Cc: rt@pinhead.nshl.com, questions@FreeBSD.ORG Subject: Re: Problem su'ing to root Message-Id: <20020409171032.31a30451.gclarkii@vsservices.com> In-Reply-To: References: X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 09 Apr 2002 16:27:36 -0400 Brendan McAlpine wrote: > Ryan > > Thanks for the help. Here is where my problem gets more complex. > > 1. I don't have sudo set up on this machine. > > 2. csh is not on the machine for some reason. > > Right now there is no way for me to get root powers on the machine. Even > sitting at the console doesn't let me log in as root. If your at the console, then reboot and enter /kernel -s when the prompt comes up. This will boot the system into single user and allow you to choose your shell. Any ideas on why /bin/csh is not there? I can not think of a reason to remove it and it has been a standard BSD shell forever. GB > Any other ideas? > > Argh > > Brendan > > > From: Ryan Thieme > > Date: Tue, 9 Apr 2002 16:15:39 -0400 (EDT) > > To: Brendan McAlpine > > Cc: questions@FreeBSD.ORG > > Subject: Re: Problem su'ing to root > > > > On Tue, 9 Apr 2002, Brendan McAlpine wrote: > > > >> Hey everyone, > >> > >> I have run into a bit of a problem. For some reason, when I ssh into my > >> FreeBSD box and try to su to root, I get this message: > >> > >> su: /bin/csh: No such file or directory > >> > >> Looks like the root user is set up to use csh, when it isn't on the machine. > >> How can I change the root user's shell? I can't su to root right now as the > >> csh is not found. > >> > >> Help! Is there any way to do this remotely? If not, how do I go about > >> fixing this? > >> > >> Thanks > >> > >> Brendan > >> > > > > I'll take my first stab at *answering* a question and not just asking > > them. > > > > If you have sudo access set up for your account you could always: > > > > sudo vipw and change the shell there > > or > > sudo chsh root and change the shell there > > or > > edit /etc/shells and add /bin/csh or where ever the csh shell might be, > > like /usr/local/bin/csh > > > > Hopefully one of my answers will work and is actually the safe way to do > > it. > > > > Ryan > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- GB Clark II | Roaming FreeBSD Admin gclarkii@VSServices.COM | General Geek CTHULU for President - Why choose the lesser of two evils? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message