From owner-freebsd-questions Tue Apr 9 13:20:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pinhead.nshl.com (pinhead.nshl.com [208.59.41.226]) by hub.freebsd.org (Postfix) with ESMTP id 8B45837B400 for ; Tue, 9 Apr 2002 13:20:18 -0700 (PDT) Received: from localhost (rt@localhost) by pinhead.nshl.com (8.11.6/8.11.1) with ESMTP id g39KFdp26414; Tue, 9 Apr 2002 16:15:39 -0400 (EDT) (envelope-from rt@pinhead.nshl.com) Date: Tue, 9 Apr 2002 16:15:39 -0400 (EDT) From: Ryan Thieme To: Brendan McAlpine Cc: questions@FreeBSD.ORG Subject: Re: Problem su'ing to root In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 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