Date: Sun, 28 Jan 1996 09:16:55 +0200 (SAT) From: Tony Harverson <tony@hornet.netac.co.za> To: keithl@gil.net (Keith Leonard) Cc: freebsd-questions@freebsd.org Subject: Re: Help - I'm locked out and don't know how to get in!!! Message-ID: <199601280716.JAA04694@hornet.netac.co.za> In-Reply-To: <Pine.LNX.3.91.960127234839.28413A-100000@wakko.gil.net> from "Keith Leonard" at Jan 27, 96 11:59:10 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 ? || <+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601280716.JAA04694>