搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to make xulstore.json permanently read only under linux

  • 2 回覆
  • 1 有這個問題
  • 42 次檢視
  • 最近回覆由 Yinmin

more options

I've used a file manager and the terminal (sudo chmod u-w xulstore.json) and it works, but then firefox (95.0.1 64bit) runs over it with a bulldozer.

How to fix this?

I've used a file manager and the terminal (sudo chmod u-w xulstore.json) and it works, but then firefox (95.0.1 64bit) runs over it with a bulldozer. How to fix this?

被選擇的解決方法

A quick Google of your question, I found this.

sudo chattr +i filename

From man chattr:

A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

選擇的解決方法

A quick Google of your question, I found this.

sudo chattr +i filename

From man chattr:

A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

more options

wow, you're awesome