From owner-freebsd-questions Tue Apr 9 13:35:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.macconnect.com (mail.macconnect.com [204.68.168.11]) by hub.freebsd.org (Postfix) with SMTP id 94BC937B400 for ; Tue, 9 Apr 2002 13:35:36 -0700 (PDT) Received: (qmail 43141 invoked by uid 0); 9 Apr 2002 20:41:24 -0000 Received: from unknown (HELO ?10.1.1.100?) (24.47.13.122) by mail.macconnect.com with SMTP; 9 Apr 2002 20:41:24 -0000 User-Agent: Microsoft-Entourage/10.0.0.1331 Date: Tue, 09 Apr 2002 16:35:33 -0400 Subject: Re: Changing root user's shell remotely From: Brendan McAlpine To: Giorgos Keramidas Cc: Message-ID: In-Reply-To: <20020409180544.GM67632@hades.hell.gr> 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 That did the trick. Thanks a bunch. I looked through the man page for su but I guess I looked right over the -m option. Brendan > From: Giorgos Keramidas > Date: Tue, 9 Apr 2002 21:05:45 +0300 > To: Brendan McAlpine > Cc: questions@FreeBSD.ORG > Subject: Re: Changing root user's shell remotely > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message