How to prevent access to everything in a directory to everything except a couple of programs?
I have my own user account on Linux (arch) I am logged in as. Currently all files in my home directory are owned by me. But how can I set everything in a particular directory within the home directory to be accessed only by a couple of programs rather than all the programs I use?
This is to prevent a malicious program from altering or viewing the contents of those files.
I tried using firejail but it's not what I'm looking for. First of all it doesn't have a global disable policy where you block everything then only allow what you want. Second of all you need to be sure every application is opened using firejail if you want to be fully secure.
Instead I want to do something like saying only nvim and vscode can alter or view anything in this particular directory. What is the recommended way to do this? I've never really done anything with users and permissions other than the defaults but I'm assuming this is the way to go?
About this post
- Posted
- Archived
- Score
- 13 · 94% up
- Kind
- Text
- ID
- nv4tzx