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

Reply via email to