From owner-freebsd-questions Fri Feb 28 16:43:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA00526 for questions-outgoing; Fri, 28 Feb 1997 16:43:51 -0800 (PST) Received: from mailhost1.cac.washington.edu (mailhost1.cac.washington.edu [140.142.32.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA00520 for ; Fri, 28 Feb 1997 16:43:48 -0800 (PST) Received: from s5-25-199.student.washington.edu (S5-25-199.student.washington.edu [128.95.25.199]) by mailhost1.cac.washington.edu (8.8.4+UW96.12/8.8.4+UW96.12) with SMTP id QAA18003; Fri, 28 Feb 1997 16:43:43 -0800 Message-ID: <33177BB0.2451@u.washington.edu> Date: Fri, 28 Feb 1997 16:43:28 -0800 From: Jason Wells Organization: (soon to be) Highperformance.net X-Mailer: Mozilla 3.0Gold (Win95; I) MIME-Version: 1.0 To: Ravi Pina CC: freebsd-questions@freebsd.org Subject: Re: Invalid Shell Lockout References: <331771C1.FF6D5DF@gersh.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ravi Pina wrote: > > Well, I seemt o have supplied an invalid shell for root, so when I want > to su over it gives me a Permission denied! I appear to be completely > locked out of the system as a result... any idea what I can do to > overcome this problem? It owuld be nice if it just fell back to /bin/sh > or something so you can login even if you're a dork like me. I did this. I seem to recall that I just logged in as root (not su) and was able to select my shell. If you want to use a different shell you can edited /etc/shells and put the desired shell in this file. Then it will no longer be invalid. You may also try reading man su. I beleive that you can su -m without the shell being changed. This will give you your root power back. As you will be root but with the pre-existing shell. Then you can edit everything and make it right. -- __ __ / 0\ / 0\ Thank you * Highperformance.net ) Wannabe Sysadmin * The homeless domain )-------( Jason Wells * "Pardon me sir, spare some bandwidth?" \_____/