Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to make xulstore.json permanently read only under linux

  • 2 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 31 views
  • Last reply by Yinmin

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.

Read this answer in context 👍 0

All Replies (2)

தீர்வு தேர்ந்தெடுக்கப்பட்டது

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.