Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Could you please enlighten me why I get messages like
'nvi successfully recovered smb.conf'
or the like, when I restart a crashed unix server?
(Nvi also tends to recover .pl scripts).
This seems strange for me, since I can bet these files were not opened by anyone for writing (at least I strongly hope so).
So, why they need recovery after a system crash?
nvi is a version of the vi editor - it will recover semi-edited files from unsaved sessions where the editor wasn't exited properly. i guess that means when anyone is messing around with files they can't edit, they exit vi improperly (or are cut off during a system crash), and nvi saves it in a buffer somewhere.
...that, or some cron script is using vi to update files, which i find somewhat unlikely... hmm.
There are some cron jobs, but none of them is intended to edit any files.
What to check in order to find out if I am hacked?
Not being a guru I checked 'last' (only showing my logins) and /var/messages, so far, but I am almost sure that a hacker can delete evidences from such obvious places.
i really wouldn't know what to check for. i don't think it's very likely that your system has been compromised in any way, but i'd recommend upgrading the program just to be safe. you can get the latest version here - http://www.bostic.com/vi/
nvi uses a different buffer and recovery system than vim or classic vi uses, so i'm not sure how it would act after a system crash. i think it's much more likely that the recoveries you're seeing are a result of interrupted sessions rather than anything sinister. you might want to check in your startup scripts to see if there's anything nvi uses to recover crashed sessions at startup. i found this about nvi recovery - hope it helps : http://www.neosoft.com/neosoft/man/vi.1.html#sect4
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.