Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2002 21:05:45 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Brendan McAlpine <bmcalpine@macconnect.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Changing root user's shell remotely
Message-ID:  <20020409180544.GM67632@hades.hell.gr>
In-Reply-To: <B8D891C7.BECA%bmcalpine@macconnect.com>
References:  <B8D891C7.BECA%bmcalpine@macconnect.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020409180544.GM67632>