Date: Tue, 26 Feb 2002 23:08:49 +0200 From: "Dave Raven" <dave@raven.za.net> To: "Chris Faulhaber" <jedgar@fxp.org>, "Ian Barnes" <ian@cerebellum.za.net> Cc: <security@freebsd.org> Subject: Re: login problem Message-ID: <010e01c1bf09$cfd15d20$3800a8c0@DAVE> References: <20020226205711.GB99775@peitho.fxp.org>
index | next in thread | previous in thread | raw e-mail
you should get an error message like so with su -m:
su: permission denied (shell).
( I tested it ) and I dont think it will work with a non-existant
shell anyway...
Or is there another reason for that?
Dave.
----- Original Message -----
From: "Chris Faulhaber" <jedgar@fxp.org>
To: "Ian Barnes" <ian@cerebellum.za.net>
Cc: <security@freebsd.org>
Sent: Tuesday, February 26, 2002 10:57 PM
Subject: Re: login problem
> 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
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010e01c1bf09$cfd15d20$3800a8c0>
