Security

隱藏文件和目錄警告

  • May 5, 2019

我收到了這些 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

不,這些文件是您編輯/etc/sudoers文件vim而不保存文件並正確退出編輯器的剩余文件。除非您需要從以前的編輯會話中恢復數據,並且除非您目前正在編輯文件,否則可以將其刪除。

:help swap-filevim

引用自:https://unix.stackexchange.com/questions/517149