Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Apr 2002 16:35:33 -0400
From:      Brendan McAlpine <bmcalpine@macconnect.com>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        <questions@FreeBSD.ORG>
Subject:   Re: Changing root user's shell remotely
Message-ID:  <B8D8C8D5.BF84%bmcalpine@macconnect.com>
In-Reply-To: <20020409180544.GM67632@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <keramida@ceid.upatras.gr>
> Date: Tue, 9 Apr 2002 21:05:45 +0300
> To: Brendan McAlpine <bmcalpine@macconnect.com>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8D8C8D5.BF84%bmcalpine>