#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2006
    Posts
    1
    Rep Power
    0

    Goofed on rc.conf (freebsd6.1)


    opps...
    I left a quotation mark off the end of a line in rc.conf:

    dovecot_enable="YES

    so unix rebooted and is running in a very basic shell, and I can't seem to use vi, ee or pico. the number of commands I can use are very limited, however I was able to use "cat /etc/rc.conf" to view the file. lines like more, etc don't work.
    does any one have an idea how to edit rc.conf, or should I just wipe the os and start over?

    Thanks
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2006
    Location
    Dublin, Ireland
    Posts
    174
    Rep Power
    48
    Can you use grep? If so you should be able to use it to remove the line.

    Code:
    grep -v "^dovecot_enable" rc.conf > rc.conf.tmp
    mv rc.conf.temp > rc.conf

IMN logo majestic logo threadwatch logo seochat tools logo