From owner-freebsd-security Tue Feb 26 12:57:49 2002 Delivered-To: freebsd-security@freebsd.org Received: from peitho.fxp.org (peitho.fxp.org [209.26.95.40]) by hub.freebsd.org (Postfix) with ESMTP id 7534F37B426 for ; Tue, 26 Feb 2002 12:57:18 -0800 (PST) Received: by peitho.fxp.org (Postfix, from userid 1501) id 1865613669; Tue, 26 Feb 2002 15:57:12 -0500 (EST) Date: Tue, 26 Feb 2002 15:57:11 -0500 From: Chris Faulhaber To: Ian Barnes Cc: security@freebsd.org Subject: Re: login problem Message-ID: <20020226205711.GB99775@peitho.fxp.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.24i Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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