Date: Sun, 7 Dec 2008 09:17:37 -0500 From: Jerry McAllister <jerrymc@msu.edu> To: Redd Vinylene <reddvinylene@gmail.com> Cc: questions@freebsd.org Subject: Re: Locked myself out.. AGAIN!! Message-ID: <20081207141737.GA15666@gizmo.acns.msu.edu> In-Reply-To: <f1019d520812070204u752a410bw5812dcc3fac04160@mail.gmail.com> References: <f1019d520812070204u752a410bw5812dcc3fac04160@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081207141737.GA15666>