Is there a simple way of making sure that a non-interactive shell on Linux can never execute a specific program?

Shitty applications will find impressive ways to ignore your browser defaults and try opening a chrome browser at the worst times (or even try to overwrite the default). I want to make sure that my user, from an interactive shell, can be the only way a chromium based browser ever gets executed. Is that too much to ask? Ideally in a way that prevents its automatic discoverability so it isn't even an option in context menus and so on...

@thufie you could maybe just replace the binary with a middle man script that doesn’t do anything unless a certain parameter is passed through as well? But that might also break stuff and would require maintenance when updating…

Follow

@compufox that's an idea. maybe a lil shell script that asks for additional bespoke confirmation elsewise times out and does nothing would be enough...

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.