The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Nvi saved the file rc.conf

Discussion in 'General Discussion' started by shaman, Oct 16, 2009.

  1. shaman

    shaman Registered

    Joined:
    Nov 9, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Every day cpanel is sending following message to me:


    On Mon Nov 10 04:13:18 2008, the user root was editing a
    file named /etc/rc.conf on the machine hs.good-host.ru, when
    it was saved for recovery. You can recover most, if not all,
    of the changes to this file using the -r option to vi:

    vi -r /etc/rc.conf


    What shell i do whit this?
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Are you able to view the file without error, via a command such as "cat" or "less" (via root SSH access)?

    Please try the following:
    Code:
    # cat /etc/rc.conf && echo
    # less /etc/rc.conf
    To exit or quit "less" simply press "q" on your keyboard. "cat" will output the contents directly to your console for viewing, while "less" will allow you to scroll up and down if needed.

    What output shows from the following command?
    Code:
    # ls -al /etc/rc.conf*
    Conversely, what output do you see from the command sent via e-mail?
    Code:
    # vi -r /etc/rc.conf
    If you wanted to attempt a recovery using the "vi -r" command, I recommend saving a fresh backup first:
    Code:
    # cp -pv /etc/rc.conf /etc/rc.conf.backup
    Viewing the manual page for vi may help to understand the issue:
    Code:
    # man vi
     
Loading...

Share This Page