From owner-freebsd-questions Mon Sep 20 6:35:41 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tasam.com (tasam.com [206.161.83.22]) by hub.freebsd.org (Postfix) with ESMTP id 67ED815739 for ; Mon, 20 Sep 1999 06:35:38 -0700 (PDT) (envelope-from korvus@tasam.com) Received: from korvus (hc6523b3f.dhcp.vt.edu [198.82.59.63]) by tasam.com (8.9.3/8.9.3) with SMTP id JAA62187; Mon, 20 Sep 1999 09:35:25 -0400 (EDT) (envelope-from korvus@tasam.com) Message-ID: <006301bf036c$ff5e88c0$03000004@korvus> From: "Jeff Poole" To: , "Michael Henry" Cc: References: <19990920064917.D64181557B@hub.freebsd.org> Subject: Re: Locking myself out of Root @ Wheel Date: Mon, 20 Sep 1999 09:35:25 -0400 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 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If your passwords are the same but only your login shells are messed up, you should be able to FTP in a new master.passwd file... Ur... Unless you have FTP disabled for root , whicch I believe to be the default. Nevermind. :) ----- Original Message ----- From: Michael Henry To: Cc: ; Sent: Monday, September 20, 1999 2:49 AM Subject: Re: Locking myself out of Root @ Wheel > > CC'd to -questions. Please post follow-ups there. > > > I have locked myself out of the root user account. > > Impossible. > > > Using a basic search & replace function on the master.passwd file I renamed the > > shell in use by root (and nearly all other users), from /bin/sh to /bin/csh > > I won't ask. > > > The user I added immediately after making this change still works, all of the > > other users don't. > > I would help if you included /etc/passwd in your post. > (Or you could include /etc/master.passwd so we could try > to crack your passwords :) ). > > > When doing this I'm greeted with the following error right as the shell should > > start: > > > > : No such file or directory > > > > The server is still operational and working just fine without me. But, I will > > eventually need to have access to it again. > > Single user mode was designed for contingencies such as this. > > Type "boot -s" at the boot: prompt. > > > I need a suggestion for how I override either the default shell or otherwise > > gain access to the file system in order to restore the backed up master.passwd > > file. > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-newbies" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message