Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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,554
    Likes Received:
    9
    Trophy Points:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice