无意中发现,办公用的 linux系统中存在一个目录无法删除问题,因为系统中用的root用户,这个目录没有做过特殊设置,比如chattr +i 设置等操作,感觉很奇怪。
rm -rf vpn.conf
rm: cannot remove 'vpn.conf': Operation not permitted
查看文件的扩展flag
# lsattr vpn.conf
--------------e------- vpn.conf
e flag标记说明:
From 'man chattr':
Raw
The ’e’ attribute indicates that the file is using extents for mapping the blocks on d