[GH-ISSUE #3214] [Question] How to disable firejail temporarily? #2011

Closed
opened 2026-05-05 08:40:53 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ericschdt on GitHub (Feb 9, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3214

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.

Originally created by @ericschdt on GitHub (Feb 9, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3214 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.
gitea-mirror 2026-05-05 08:40:53 -06:00
Author
Owner

@rusty-snake commented on GitHub (Feb 9, 2020):

$ 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.

<!-- gh-comment-id:583839805 --> @rusty-snake commented on GitHub (Feb 9, 2020): ``` $ 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.
Author
Owner

@ericschdt commented on GitHub (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!

<!-- gh-comment-id:583840373 --> @ericschdt commented on GitHub (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!
Author
Owner

@rusty-snake commented on GitHub (Feb 9, 2020):

#!/usr/bin/env bash
PROGRAMS=("firefox" "thunderbird" "libreoffice")
for program in "${PROGRAMS[@]}"; do
        sudo ln -s /usr/bin/firejail /usr/local/bin/"$program"
done
<!-- gh-comment-id:583841631 --> @rusty-snake commented on GitHub (Feb 9, 2020): ```bash #!/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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2011
No description provided.