您的位置 首页 OS

chattr 文件只读配置

World of Tanks global

Elevate Your Hosting – Dedicated Servers

经常看到有些文件有写权限还是说只读,这其实是因为该文件被chattr设置成只读了~ chattr可以防止关键文…

经常看到有些文件有写权限还是说只读,这其实是因为该文件被chattr设置成只读了~

chattr可以防止关键文件被修改

在linux下,有些配置文件是不允许任何人包括root修改的,为了防止被误删除或修改,可以设定该文件的”不可修改位(immutable)”。

例如:
chattr +i /etc/fstab
如果需要修改文件则:
chattr -i /etc/fstab
以后再修改文件。

作者: admin

Share cheap VPS, cloud servers, virtual host related discount information, merchant background, network bandwidth, line routing evaluation recommendations, inventory monitoring and usage tutorials, and share dry goods resources both domestically and internationally.

Web Tools

返回顶部