Locked myself out.. AGAIN!!

Jerry McAllister jerrymc at msu.edu
Sun Dec 7 06:22:49 PST 2008


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list