Score:0

Run Firefox with some non-readable files

se flag

I would like to run Firefox (installed via Ubuntu Software) on Ubuntu 20.04 while having any of the Firefox files be non-readable that are necessary for Firefox to run. So I don’t need all Firefox files to be non-readable. A single, but necessary, Firefox file being non-readable suffices. The user I would be running Firefox as is a standard user (i.e. no superuser rights).

The motivation for this is that I want to run Firefox with locked add-ons, policies.json and userChrome.css that help me prevent procrastinating. However, if I have read-access, I can just copy-paste Firefox, remove the procrastination-preventing files (since the copied files will be mutable and writeable) and run a Firefox instance without my helpful restrictions. An approach I tried is making the “firefox” binary file (i.e. usr/lib/firefox/firefox) non-readable, since I read that binaries are executable even when non-readable, but that leads to the situation in the image below in any tab I open.

Of course, I would also appreciate completely different solutions for the problem I am trying to solve. Any help and suggestions would be appreciated!

DeapSoup avatar
se flag
Here: https://unix.stackexchange.com/a/34294/273577 Maybe I misunderstood?
Tilman avatar
cn flag
"I read that binaries are executable even when non-readable" Where did you read that? It is wrong.
DeapSoup avatar
se flag
Another source: https://stackoverflow.com/a/45881567/5827510
Tilman avatar
cn flag
Interesting. I didn't know that. I retract my statement.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.