Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有可能“确保”葡萄酒;就像用户无法删除“explorer.exe”或弄乱 dll 一样。
我听说过 apparmor(我正在运行 ubuntu)和 chroot。
最好的方法是什么?
怎么样:将文件设置为不同的用户(chown),并将“组”和“其他”权限设置为“只读”(chmod 644)。
chown
chmod 644
这样,当前用户只能读取文件,而不能修改它们。
您可以使用主机操作系统的文件系统权限来“保护”文件。