From owner-freebsd-questions Sun Sep 19 23:49:24 1999 Delivered-To: freebsd-questions@freebsd.org Received: from staff.cs.usyd.edu.au (staff.cs.usyd.edu.au [129.78.8.1]) by hub.freebsd.org (Postfix) with SMTP id 9865B156AD for ; Sun, 19 Sep 1999 23:49:17 -0700 (PDT) (envelope-from mhenry@pgrad.cs.usyd.edu.au) Subject: Re: Locking myself out of Root @ Wheel To: veenoghu@uvic.ca Date: Mon, 20 Sep 1999 16:49:09 +1000 (EST) From: "Michael Henry" Cc: freebsd-newbies@freebsd.org, freebsd-questions@freebsd.org In-Reply-To: from "Morgan Stewart" at Sep 19, 99 10:39:30 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1064 Message-Id: <19990920064919.9865B156AD@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-questions" in the body of the message