隠しファイルとディレクトリの警告

隠しファイルとディレクトリの警告

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-file済みvim

おすすめ記事