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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Tue, Feb 26, 2002 at 11:06:27PM +0200, Ian Barnes wrote: > Hi, > > 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 back > in, because there is no /bin/bash. > > Is there anyway i can get root on the box? > Assuming you can login as a user with su privileges, use 'su -m'. -- Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: FreeBSD: The Power To Serve iEYEARECAAYFAjx79qcACgkQObaG4P6BelDT2wCeNHko7LrfTkWTgoz3iyC/b6Eu +JoAnia+5nMrf1N02fte2ietuLSPLlUK =3TXp -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020226205711.GB99775>
