Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2002 15:57:11 -0500
From:      Chris Faulhaber <jedgar@fxp.org>
To:        Ian Barnes <ian@cerebellum.za.net>
Cc:        security@freebsd.org
Subject:   Re: login problem
Message-ID:  <20020226205711.GB99775@peitho.fxp.org>
In-Reply-To: <GHELLEBMKFNBOCDINMEJMEEMCBAA.ian@cerebellum.za.net>
References:  <GHELLEBMKFNBOCDINMEJMEEMCBAA.ian@cerebellum.za.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Feb 26, 2002 at 11:06:27PM +0200, Ian Barnes wrote:
> Hi,
>=20
> I ssh into my FreeBSD 4.5 box using ssh. I wanted to change my shell from
> bash to tcsh, so i ran vipw, edited the file from /usr/local/bin/bash to
> /bin/bash (not thinking straight). Saved it, and exited. Now i cant get b=
ack
> in, because there is no /bin/bash.
>=20
> Is there anyway i can get root on the box?
>=20

Assuming you can login as a user with su privileges, use
'su -m'.

--=20
Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
--------------------------------------------------------
FreeBSD: The Power To Serve   -   http://www.FreeBSD.org

--2oS5YaxWCcQjTEyO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: FreeBSD: The Power To Serve

iEYEARECAAYFAjx79qcACgkQObaG4P6BelDT2wCeNHko7LrfTkWTgoz3iyC/b6Eu
+JoAnia+5nMrf1N02fte2ietuLSPLlUK
=3TXp
-----END PGP SIGNATURE-----

--2oS5YaxWCcQjTEyO--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




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