Why is Firefox owned by root?

Questions about applications and software
Forum rules
Before you post please read this

Why is Firefox owned by root?

Postby mint123 on Sat Jun 09, 2012 10:30 pm

On a default Mint install, Firefox is located in /opt but is owned by root. Is this a security issue? Firefox has root privledges to do whatever it likes. Chrome from Google's website installs into /opt but it's owned by the user who installs it. Should chown or chmod be used on Firefox to take it out of root ownership?
mint123
Level 3
Level 3
 
Posts: 133
Joined: Mon Jan 31, 2011 4:44 pm

Linux Mint is funded by ads and donations.
 

Re: Why is Firefox owned by root?

Postby xenopeek on Sun Jun 10, 2012 8:44 am

You are mixing up some things here :D

First, a program is not run as the user that owns it, but but as the user that runs it. Though there are ways to set a program to be run as the user that owns it, that is very, very, very, rarely done and not the case here. There is no security issue. I suggest you read up on understanding how Linux handles file permissions, for example here: https://www.linux.com/learn/tutorials/3 ... ermissions

Second, the few files that are in /opt/firefox are installed by the mint-stylish-addon and the mint-search-addon packages. These are add-ons to Firefox, not Firefox itself :wink:

How do I know? Using the "dpkg -S filename" you can search for packages that installed a file. To confirm, consult Synaptic and look at the list of files that both these packages installed, or just run the following to see that all the files in /opt/firefox are indeed installed from these two packages:
Code: Select all
dpkg -L mint-stylish-addon mint-search-addon | grep ^/opt

So yeah, you can also look up the firefox package to see which files are installed for Firefox. None of those are in /opt.
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10477
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Why is Firefox owned by root?

Postby mint123 on Mon Jun 11, 2012 2:05 pm

Thank you Vincent. I will give that a read. One thing but, I'm on Mint Debian and my Firefox is entirely in /opt. Even usr/bin/firefox is just a link to /opt. I have the mint stylish and mint search addons removed. I guess it's different in the Ladies of Mint?
mint123
Level 3
Level 3
 
Posts: 133
Joined: Mon Jan 31, 2011 4:44 pm

Re: Why is Firefox owned by root?

Postby eanfrid on Mon Jun 11, 2012 2:31 pm

There is no Firefox in a pure Debian, but there is Iceweasel, the debianized version of Firefox. Perhaps it is the reason why the real Firefox in LMDE is installed in /opt.
Image
Never attribute to malice that which is adequately explained by stupidity.
User avatar
eanfrid
Level 4
Level 4
 
Posts: 495
Joined: Mon Apr 30, 2012 2:49 am
Location: France

Re: Why is Firefox owned by root?

Postby xenopeek on Mon Jun 11, 2012 4:52 pm

Ah, mint123 I guess then that you are using LMDE instead? There indeed the firefox package installs into /opt. Still, the bit about it being owned by root not being a security issues stands :wink:

Moved your post here.
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10477
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 3 guests