Firejail and Mint 19.3 (Solved)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Firejail and Mint 19.3 (Solved)

Post by Cats »

Hi guys,

I went from Mint 18.3 to 19.3 cinnamon yesterday, and am still working out some bugs. I'd like to firejail firefox but when I try I get:

"Error: Access was denied while trying to open files in your profile directory."

Firefox is working great, so I don't think it's a profile problem. Any help would be appreciated. :)
Last edited by Cats on Fri Feb 14, 2020 9:32 pm, edited 1 time in total.

User avatar
JoeFootball
Level 8
Level 8
Posts: 2389
Joined: Tue Nov 24, 2009 1:52 pm
Location: /home/usa/mn/minneapolis/joe

Re: Firejail and Mint 19.3

Post by JoeFootball »

Cats wrote: "Error: Access was denied while trying to open files in your profile directory."
Is that a Firejail error? Or a Firefox error?

How are you deploying Firefox within Firejail?

Did you run firecfg after you installed Firejail?

Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Re: Firejail and Mint 19.3

Post by Cats »

I'm using a launch icon on the desktop, so it's a firejail error. The command line is firejail firefox.
Did you run firecfg after you installed Firejail?
No, but I'll give it a try!

User avatar
JoeFootball
Level 8
Level 8
Posts: 2389
Joined: Tue Nov 24, 2009 1:52 pm
Location: /home/usa/mn/minneapolis/joe

Re: Firejail and Mint 19.3

Post by JoeFootball »

Cats wrote: No, but I'll give it a try!
sudo firecfg

Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Re: Firejail and Mint 19.3

Post by Cats »

Ran the command, and now I'm getting the same error "You're fiefox profile cannot be loaded." from firefox. --- One step forward and two steps back? LOL

Firefox profiles.ini is located in the mozilla / firefox folder -- so it's not missing.

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

Re: Firejail and Mint 19.3

Post by Pjotr »

Try this:

1. Fix permissions in your /home:

Code: Select all

sudo chown -Rc $USER:$USER $HOME
2. Install the latest Firejail LTS:
https://easylinuxtipsproject.blogspot.c ... html#ID2.1
(item 2.1)

3. Test again.
Tip: 10 things to do after installing Linux Mint 19.3 Tricia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Re: Firejail and Mint 19.3

Post by Cats »

I think I followed your steps ok Pjotr, but I'm getting a new error code of: no default.profile installed.
It's a new one.

Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Re: Firejail and Mint 19.3

Post by Cats »

I probably should mention I can't get thunderbird to firejail either. -- I might have messed something up when I deleted firejail yesterday wanting to do a clean install.

Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Re: Firejail and Mint 19.3

Post by Cats »

According to the web page below, I'm missing firejail-default that should be located in /etc/apparmor.d And activated with: # apparmor_parser -r /etc/apparmor.d/firejail-default

https://wiki.archlinux.org/index.php/Fi ... ntegration

So a quick question... Is this something I could add with copy and paste if I could find the text?

Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Re: Firejail and Mint 19.3

Post by Cats »

I reinstalled 19.3, and followed the sudo apt get lines from this post: viewtopic.php?t=273533 and now the parent terminal comes up and firefox starts. Is there a way I can check and make sure it's working?

Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Re: Firejail and Mint 19.3

Post by Cats »

I get rid of the terminal and ff shuts down. It works! :)

User avatar
JoeFootball
Level 8
Level 8
Posts: 2389
Joined: Tue Nov 24, 2009 1:52 pm
Location: /home/usa/mn/minneapolis/joe

Re: Firejail and Mint 19.3

Post by JoeFootball »

Cats wrote: Is there a way I can check and make sure it's working?
firejail --list will display all running instances.

Cats
Level 1
Level 1
Posts: 25
Joined: Sun Dec 23, 2018 9:06 pm

Re: Firejail and Mint 19.3 (Solved)

Post by Cats »

Tried the command and I'm good. :D Thanks for the help.

User avatar
trytip
Level 12
Level 12
Posts: 4460
Joined: Tue Jul 05, 2016 1:20 pm

Re: Firejail and Mint 19.3 (Solved)

Post by trytip »

i have found out that if you build it from source it's a better option. i uninstalled the mint version which is in software manager (be sure there is no firejail on your system before building and create timeshift snapshot.
install build dependencies:

Code: Select all

sudo apt-get install git build-essential libapparmor-dev pkg-config
build firejail which will be installed in /usr/local

Code: Select all

git clone https://github.com/netblue30/firejail.git
cd firejail
./configure && make && sudo make install-strip
now any time you want to update, just use the build codes to refresh it
source: https://github.com/netblue30/firejail

Code: Select all

mint03@mint03:~$ firejail --version
firejail version 0.9.63

Compile time support:
	- AppArmor support is disabled
	- AppImage support is enabled
	- chroot support is enabled
	- file and directory whitelisting support is enabled
	- file transfer support is enabled
	- firetunnel support is enabled
	- networking support is enabled
	- overlayfs support is enabled
	- private-home support is enabled
	- seccomp-bpf support is enabled
	- user namespace support is enabled
	- X11 sandboxing support is enabled

mint03@mint03:~$ 
Image

Post Reply

Return to “Newbie Questions”