From owner-freebsd-questions Sat Jan 27 23:15:24 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA29341 for questions-outgoing; Sat, 27 Jan 1996 23:15:24 -0800 (PST) Received: from hornet.netac.co.za (hornet.netac.co.za [196.3.237.162]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA29335 for ; Sat, 27 Jan 1996 23:15:20 -0800 (PST) Received: (from tony@localhost) by hornet.netac.co.za (8.6.12/8.6.12) id JAA04694; Sun, 28 Jan 1996 09:16:56 +0200 From: Tony Harverson Message-Id: <199601280716.JAA04694@hornet.netac.co.za> Subject: Re: Help - I'm locked out and don't know how to get in!!! To: keithl@gil.net (Keith Leonard) Date: Sun, 28 Jan 1996 09:16:55 +0200 (SAT) Cc: freebsd-questions@freebsd.org In-Reply-To: from "Keith Leonard" at Jan 27, 96 11:59:10 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk > > Anyone, > I had just changed my shell (to bash) which I assumed (yes I know) was > there because I had added it during the initial installation. My son > interrupted me, a movie caught my eye, an hour or so latter BSD had > autologged me out. Needless to say bash wasn't were it was suppose to be > in /usr/bin ( because I hadn't had time to check it before I was logged > out). Now when I try to log in as root with the right password BSD tells > me that bash isn't in /usr/bin and loops me back to the login prompt. I > tried booting single user mode but that only allows me to check the > filesystem and look around (ro), so I can't change anything. Hiya Keith :) believe it or not, I've done this before as well :) (well... I changed roots shell to a csh, and really typed chs :( There are two soultions I can think of.. 1) If you have created yourself a regular unix account other than the root one already, log into it and type 'su -m' and then the root password (this assumes that account is in group wheel) 2) if the above is impossible, your root filesystem should be mounted rw not ro by a -s reboot (but your other filesystems will not be mounted. type 'mount -a' after rebooting to single user to get all your filesystems on line, and then type 'chfn' - this should allow you to change roots shell to the proper path (which is : /usr/local/bin/bash). If you have any trouble with this, mail me :) Tony -- <+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+> || Tony Harverson | Go not softly into that gentle MS Night, || || Unix Admin | Rage, Rage against the dying of the UNIX Light || || Internet Support |+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+|| || Person | Since when was Windows an *operating* System ? || <+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+>