Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2008 12:32:56 +0100 (CET)
From:      "Joost Bekkers" <joost@jodocus.org>
To:        "Redd Vinylene" <reddvinylene@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: Locked myself out.. AGAIN!!
Message-ID:  <1567.192.168.100.227.1228649576.squirrel@jodocus.org>
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, December 7, 2008 11:04, 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?
>

Try `su -m` the man page says it will use your current shell instead of
the one in passwd.

good luck.

Joost.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1567.192.168.100.227.1228649576.squirrel>