linux centos .user.ini solution can not be deleted under the web root directory

.user.ini files when performing rm -rf, tips can not be deleted
solutions to
first understand the role chattr command: do not let the user modify, delete files.
-i option: Set file can not be deleted, renamed, set the link relationship, and can not write or add content. i parameters of great help to the security settings of the file system.
Solution:

chattr -i 你的网站目录/.user.ini

Then execute the rm command can be deleted.

Guess you like

Origin www.cnblogs.com/AlexanderZhao/p/11221682.html