From owner-freebsd-security Tue Feb 26 13:14:22 2002 Delivered-To: freebsd-security@freebsd.org Received: from chaos.evolve.za.net (chaos.evolve.za.net [196.34.172.107]) by hub.freebsd.org (Postfix) with ESMTP id 8B43237B402 for ; Tue, 26 Feb 2002 13:14:15 -0800 (PST) Received: from DAVE ([192.168.0.56]) by chaos.evolve.za.net (8.11.6/1.1.3) with SMTP id g1QLDg850105; Tue, 26 Feb 2002 23:13:46 +0200 (SAST) (envelope-from dave@raven.za.net) Message-ID: <010e01c1bf09$cfd15d20$3800a8c0@DAVE> From: "Dave Raven" To: "Chris Faulhaber" , "Ian Barnes" Cc: References: <20020226205711.GB99775@peitho.fxp.org> Subject: Re: login problem Date: Tue, 26 Feb 2002 23:08:49 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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" To: "Ian Barnes" Cc: 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