Locked myself out.. AGAIN!!

Glen Barber glen.j.barber at gmail.com
Sun Dec 7 02:07:51 PST 2008


On Sun, Dec 7, 2008 at 5:04 AM, Redd Vinylene <reddvinylene at gmail.com> 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.
>

This is why you shouldn't edit password files directly.

> 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 sudo installed?  If not, your only other option is to boot
into single user mode.  But that won't help if you're not at the
console.


-- 
Glen Barber


"If you have any trouble sounding condescending, find a Unix user to
show you how it's done."
 --Scott Adams


More information about the freebsd-questions mailing list