【发布时间】:2017-08-02 09:12:17
【问题描述】:
我在我的 CentOS 上安装了一个 CMS,它会不断更改文件。我想防止它被改变。 我试过了:
chattr +i file.php
或者:
chmod 444 file.php
即使我尝试复制文件(作为 file.php2)然后挂载它:
mount --bind file.php2 file.php -o ro
那我怎样才能防止我的文件被那个 CMS 更改呢?
【问题讨论】:
标签: php linux file permissions centos