Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to disable firejail temporarily? #3214

Closed
ericschdt opened this issue Feb 9, 2020 · 3 comments
Closed

[Question] How to disable firejail temporarily? #3214

ericschdt opened this issue Feb 9, 2020 · 3 comments
Labels
question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested

Comments

@ericschdt
Copy link

I would like to test something on my system but I am afraid firejail may interfere. Is there an easy way to disable firejail (after a reboot probably) and to reenable it later?
Something like firejail --disable or "systemctl disable firejail"? :)

Simply uninstalling seems not to be the desired solution as I want to keep all settings etc.

@rusty-snake rusty-snake added the question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested label Feb 9, 2020
@rusty-snake
Copy link
Collaborator

$ sudo firecfg --clean
$ reboot
$ sudo firecfg # enable

Simply uninstalling seems not to be the desired solution as I want to keep all settings etc.

You .local files and profiles in ~/.config/firejail are not affected by this.

@ericschdt
Copy link
Author

ericschdt commented Feb 9, 2020

As sudo firecfg --clean removes all kind of symlinks and sudo firecfg adds symlinks for which firejail has profiles again,
I would have to manually write a script which sets all symlinks again to the certain apps only, which I'd like to firejail.
It seems firejail does not remember those.

Thanks!

@rusty-snake
Copy link
Collaborator

#!/usr/bin/env bash
PROGRAMS=("firefox" "thunderbird" "libreoffice")
for program in "${PROGRAMS[@]}"; do
        sudo ln -s /usr/bin/firejail /usr/local/bin/"$program"
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants