Why is Firefox owned by root?

Archived topics about LMDE 1 and LMDE 2
Locked
mint123

Why is Firefox owned by root?

Post by mint123 »

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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Why is Firefox owned by root?

Post by xenopeek »

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
mint123

Re: Why is Firefox owned by root?

Post by mint123 »

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?
eanfrid

Re: Why is Firefox owned by root?

Post by eanfrid »

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.
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: Why is Firefox owned by root?

Post by xenopeek »

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
Locked

Return to “LMDE Archive”