From owner-freebsd-questions@FreeBSD.ORG Sun Dec 7 14:22:48 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E04551065676 for ; Sun, 7 Dec 2008 14:22:48 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id A2A558FC13 for ; Sun, 7 Dec 2008 14:22:48 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id mB7EHbIw015725; Sun, 7 Dec 2008 09:17:37 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id mB7EHbnV015724; Sun, 7 Dec 2008 09:17:37 -0500 (EST) (envelope-from jerrymc) Date: Sun, 7 Dec 2008 09:17:37 -0500 From: Jerry McAllister To: Redd Vinylene Message-ID: <20081207141737.GA15666@gizmo.acns.msu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: questions@freebsd.org Subject: Re: Locked myself out.. AGAIN!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2008 14:22:49 -0000 On Sun, Dec 07, 2008 at 11:04:00AM +0100, Redd Vinylene wrote: > On this dedicated box here I made the mistake of adding a comment to > root's entry in my password file: > > root:*:0:0::/root:/bin/sh # What I thought would be a harmless comment. > > Now I can't su to root. And my ISP is closed on Sundays. Is there any > way I can fix this on my own? DO you have physical access to the machine? If so, force it to reboot - maybe by pulling the plug if you have to then bring it up in single user mode. Remount root mount -u / Then use vipw to edit the file and remove that comment and any trailing blanks on that line. Then reboot again. ////jerry > > Thanks y'all! > > -- > http://www.home.no/reddvinylene > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"