Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I accidently did a echo "" > /etc/rc.conf on my box and I locked my self out completely stupidly tring to get the rc.conf back then rebooted making my self locked out.

share

locked by HopelessN00b 22 hours ago

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

2 Answers 2

You've got two options:

  1. Try booting to single user mode. This claims to tell you how, but I'm not sure how much of that behavior depends on rc.conf, so you may have to...

  2. Boot a rescue CD. Ideally a freeBSD one that you can copy the rc.conf off of and onto your machine.

share

Single user mode doesn't use rc.conf at all.

You can get into SU mode by rebooting and waiting until the loader comes up - that shows you the full screen ASCII display with a count down timer - and press 4.

If the bold white kernel text appears before you press 4 you missed it.

share