From owner-freebsd-questions Tue Apr 9 13:29:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 9106337B41A for ; Tue, 9 Apr 2002 13:29:38 -0700 (PDT) Received: from hades.hell.gr (patr530-b134.otenet.gr [212.205.244.142]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g39KTX3Z023959; Tue, 9 Apr 2002 23:29:34 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g39KTbGI056553; Tue, 9 Apr 2002 23:29:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g39I5j2t006326; Tue, 9 Apr 2002 21:05:45 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 9 Apr 2002 21:05:45 +0300 From: Giorgos Keramidas To: Brendan McAlpine Cc: questions@FreeBSD.ORG Subject: Re: Changing root user's shell remotely Message-ID: <20020409180544.GM67632@hades.hell.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i 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 2002-04-09 12:40, 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 Try using "su -m" which will keep your current environment (and use the same shell as you are using as a user). Then when your id is root, use "chsh root". Note that you -HAVE- to specify "root" to chsh, since I'm not sure if it will get the user right and might end up editing your simple user's shell instead :) Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message