Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 08:45:48 -0700
From:      Avleen Vig <lists-freebsd@silverwraith.com>
To:        Brandon Grace <brandon.grace@ntscom.com>
Cc:        freebsd-security@freebsd.org
Subject:   Re: Root users shell == no existant shell /bin/bash
Message-ID:  <20040708154548.GU5238@silverwraith.com>
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAQalskDVfo0WQ/a0WxfyYA8KAAAAQAAAAHZLwubL1IEW8iaIucc4elAEAAAAA@ntscom.com>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAQalskDVfo0WQ/a0WxfyYA8KAAAAQAAAAHZLwubL1IEW8iaIucc4elAEAAAAA@ntscom.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, Jul 08, 2004 at 10:29:58AM -0500, Brandon Grace wrote:
> I made a mistake setting my shell and have set the root users shell to
> /bin/bash instead of /bin/sh. I am curiuos if anyone knows how to fix this.
> The machines is FreeBSD 4.8-RELEASE-p4 and does not have sudo only su.

Two ways.
su -m root   will su to root but keep you currect shell etc.
boot into single user mode, and then change it.

-- 
Avleen Vig
Systems Administrator
Personal: www.silverwraith.com
EFnet:    irc.mindspring.com (Earthlink user access only)



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20040708154548.GU5238>