隐藏文件和目录警告

隐藏文件和目录警告

我收到了这些 rkhunter 结果;这些文件是什么,它们危险吗?

[23:17:48]   Checking for hidden files and directories       [ Warning ]
[23:17:48] Warning: Hidden file found: /etc/.sudoers.tmp.swl: Vim swap file, version 7.4
[23:17:48] Warning: Hidden file found: /etc/.sudoers.tmp.swm: Vim swap file, version 7.4
[23:17:48] Warning: Hidden file found: /etc/.sudoers.tmp.swn: Vim swap file, version 7.4
[23:17:49] Warning: Hidden file found: /etc/.sudoers.tmp.swo: Vim swap file, version 7.4
[23:17:49] Warning: Hidden file found: /etc/.sudoers.tmp.swp: Vim swap file, version 7.4

答案1

不,这些文件是您编辑/etc/sudoers文件vim但未保存文件并正确退出编辑器时剩下的。除非您需要从之前的编辑会话中恢复数据,并且除非您现在编辑文件,这些可以删除。

见于.:help swap-filevim

相关内容