Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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|improve this question

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|improve this answer

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|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.