Firejail

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
FrankN209
Level 1
Level 1
Posts: 24
Joined: Mon Mar 02, 2015 8:46 pm

Firejail

Post by FrankN209 » Mon Nov 12, 2018 11:14 am

Ever since I ran sudo firecfg, my browsers won't launch. I have to uninstall firejail completely to get them to work. If I reinstall firejail, the problem persists. Any workaround for this?

User avatar
xenopeek
Level 24
Level 24
Posts: 23193
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Firejail

Post by xenopeek » Mon Nov 12, 2018 12:39 pm

Firecfg installs symbolics links to for the programs on your system for which there is a firejail profile, so that those programs are run with firejail by default. Uninstalling firejail wouldn't remove those symbolic links, but it would break them so that they aren't used—until you install firejail again.

I think you can remove them all with this command:
sudo firecfg --clean

Or if you currently don't have firecfg installed you will have to delete them by hand. Should be easy to spot with:
ls -l /usr/local/bin
Anything that is a symbolic link to firejail should be deleted to do the same thing as sudo firecfg --clean does.

sudo firecfg may also have placed modified .desktop files in ~/.local/share/applications/. That should be harmless and not play into your current issue.
Image

User avatar
Pjotr
Level 20
Level 20
Posts: 11060
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Firejail

Post by Pjotr » Mon Nov 12, 2018 1:06 pm

Note that you need the latest stable Long Term Support Firejail from upstream, because the one in the repo's is only partly usable:
https://firejail.wordpress.com/download-2/
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

DAMIEN1307
Level 6
Level 6
Posts: 1223
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Firejail

Post by DAMIEN1307 » Mon Nov 12, 2018 1:27 pm

ok...so i have the same problem about removing other vestiges of firejail since i uninstalled it when i couldnt configure it to work with brave browser...so how "exactly" do i get rid of these entries...is there a sudo remove, autoremove, purge etc command i can use to do so?.

Code: Select all

damien@damien ~ $ ls -l /usr/local/bin
total 0
lrwxrwxrwx 1 root root 17 Oct 30 14:44 baobab -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 bleachbit -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 chromium-browser -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 display -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 ffmpeg -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 file-roller -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 firefox -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 gedit -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 gucharmap -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 highlight -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 less -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 mate-calc -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 mate-calculator -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 mpv -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 pdftotext -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 ping -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 pluma -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 ssh -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 strings -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 wget -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 xed -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 xfburn -> /usr/bin/firejail
lrwxrwxrwx 1 root root 17 Oct 30 14:44 xviewer -> /usr/bin/firejail
damien@damien ~ $ 
ORDO AB CHAO

User avatar
xenopeek
Level 24
Level 24
Posts: 23193
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Firejail

Post by xenopeek » Mon Nov 12, 2018 1:46 pm

This should do it if you don't have firecfg:
sudo find -P /usr/local/bin/ -lname /usr/bin/firejail -print -delete

That finds all files in /usr/local/bin/ that are a link to /usr/bin/firejail, prints their name and then deletes them.
Image

DAMIEN1307
Level 6
Level 6
Posts: 1223
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Firejail

Post by DAMIEN1307 » Mon Nov 12, 2018 1:49 pm

thank-you xenopeek, that did the trick...DAMIEN

Code: Select all

damien@damien ~ $ ls -l /usr/local/bin
total 0
damien@damien ~ $ 
ORDO AB CHAO

User avatar
xenopeek
Level 24
Level 24
Posts: 23193
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Firejail

Post by xenopeek » Mon Nov 12, 2018 1:53 pm

Well, yes, in your case you could have just delete everything in the directory :lol: The command makes sure any other readers don't delete other files by accident.
Image

DAMIEN1307
Level 6
Level 6
Posts: 1223
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Firejail

Post by DAMIEN1307 » Mon Nov 12, 2018 2:02 pm

i guess you noticed i run a "lean, mean, clean, fighting machine" probably why my problems are exceedingly few in nature...lol.
ORDO AB CHAO

Post Reply

Return to “Software & Applications”