Re: login problem

From: Chris Faulhaber (jedgar@fxp.org)
Date: 02/26/02


Date: Tue, 26 Feb 2002 15:57:11 -0500
From: Chris Faulhaber <jedgar@fxp.org>
To: Ian Barnes <ian@cerebellum.za.net>


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




Relevant Pages

  • Problems with SSH and Subversion over SSH/HTTPS
    ... I'm using a FreeBSD 7.1-RELEASE-p2 server running on AMD64, serving ssh and https, with various Mac OS X and Windows clients. ... This is notable to me because when I was running other operating systems on the same box, which I could of course make my connection fail if I ran pathological tests, the difference was like night and day. ...
    (freebsd-questions)
  • FreeBSD Security Advisory FreeBSD-SA-02:31.openssh
    ... SSH clients and servers communicate by exchanging discrete messages ... server to overwrite portions of its memory with client-provided data. ... No correction details are provided in this advisory. ... Version: GnuPG v1.0.7 (FreeBSD) ...
    (FreeBSD-Security)
  • Re: FreeBSD, SSH and "Enter Authentication Response"
    ... Matthew: Your suggestion worked beautifully. ... standard with FreeBSD 5.1-RELEASE. ... > SSH client software and the OpenSSH server code on FreeBSD. ...
    (freebsd-questions)
  • Re: Pasting via ssh causes data loss
    ... sftp of the file to the remote and ... I then opened an ssh session to a FreeBSD ... errors shown on the interface of the server? ...
    (freebsd-questions)
  • Re: Pasting via ssh causes data loss
    ... sftp of the file to the remote and ... I then opened an ssh session to a FreeBSD ... errors shown on the interface of the server? ...
    (freebsd-questions)