FS#14926 - Installation flashplugin fails due to permisison problem usr/lib/mozilla/

Attached to Project: Arch Linux
Opened by aniruddha (aniruddha) - Tuesday, 02 June 2009, 20:07 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 25 October 2009, 18:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Douglas Soares de Andrade (dsa)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The installation of flashplugin fails due to a permission problem in usr/lib/mozilla/. Apparently a package is setting the wrong permissions on /usr/lib/mozilla. I use a vanilla (no AUR) Arch which I installed 2 days ago.

# pacman -S flashplugin
resolving dependencies...
looking for inter-conflicts...

Targets (1): flashplugin-10.0.22.87-1

Total Download Size: 0.00 MB
Total Installed Size: 12.66 MB

Proceed with installation? [Y/n]
checking package integrity...
(1/1) checking for file conflicts [#####################] 100%
(1/1) installing flashplugin [#####################] 100%
warning: directory permissions differ on usr/lib/mozilla/
filesystem: 700 package: 755

ls -la /usr/lib/ | grep mozilla
drwx------ 4 root root 4096 2009-06-02 21:58 mozilla
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 25 October 2009, 18:32 GMT
Reason for closing:  Not a bug
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 02 June 2009, 20:19 GMT
In some time you have changed manually the perms of that directory, the package flashplugin and mozilla have the corrects perms (also openjdk6 that install files on this dir)

$ ls -la /usr/lib/mozilla
total 160
drwxr-xr-x 3 root root 4096 2008-12-18 11:20 ./
drwxr-xr-x 164 root root 151552 2009-06-02 15:01 ../
drwxr-xr-x 2 root root 4096 2009-05-31 00:29 plugins/

Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 02 June 2009, 20:20 GMT
btw: verify what package put wrong perms in /usr/lib/mozilla
Comment by aniruddha (aniruddha) - Tuesday, 02 June 2009, 20:41 GMT
Thanks for quick reply. To be clear; I didn't touch /usr/lib/mozilla so there must be a package doing this. I've attached the contents of /var/cache/pacman/pkg. It should be one of these 481 packages. Suggestions which packages I should inspect are welcome :) I already tried firefox & thunderbird.
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 02 June 2009, 20:48 GMT
hehe, not necessary this list at all.

Just run :pacman -Ql | grep "lib/mozilla"

Comment by aniruddha (aniruddha) - Tuesday, 02 June 2009, 20:53 GMT
Lol ok, here's the output:

$ pacman -Ql | grep "mozilla/plugins"
flashplugin /usr/lib/mozilla/plugins/
flashplugin /usr/lib/mozilla/plugins/libflashplayer.so
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 02 June 2009, 21:03 GMT
OK, is weird. Is not related to pkg installed via pacman, or at least inside the tarball, other chance is if some pkg has change the perm in the install script, but I dude about this ( grep "mozilla" /var/lib/pacman/local/*/install #or similar)

Just set the correct perm on that directory. Anyway I suggest to use the forum to continue about this instead of bugtracker. Then request for closure this task.
Comment by aniruddha (aniruddha) - Tuesday, 02 June 2009, 21:08 GMT
The reason I opened a bug is that I find it weird that somehow these permissions got messed up. The fix is trivial, however I do feel that we should figure out how this happened. I'll do an install in virtualbox to see if I can reproduce this.
Comment by aniruddha (aniruddha) - Sunday, 25 October 2009, 14:56 GMT
  • Field changed: Percent Complete (100% → 0%)
I've done several installation on different machines and this bug always occur.
Comment by Alessandro Doro (adoroo) - Sunday, 25 October 2009, 15:51 GMT
Did you run firefox (or other gecko program) as root before installing the plugins? Doing so /usr/lib/mozilla is created with permission 700.
Comment by aniruddha (aniruddha) - Sunday, 25 October 2009, 16:00 GMT
Well that explains a lot, I did indeed ran firefox as root. This as part of the installation (install xorg, and firefox, startx, cp command to add news users). Still this doesn't seem like correct behavior. Shouldn't running as root set the permissions to 755?
Comment by Alessandro Doro (adoroo) - Sunday, 25 October 2009, 16:15 GMT
$ find ~/.mozilla/ -maxdepth 1 -type d -ls
drwx------ /home/user/.mozilla/
drwx------ /home/user/.mozilla/firefox
drwx------ /home/user/.mozilla/extensions

It seems reasonable from the privacy point of view.
I agree that firefox should not touch the system directories when launched as root. Anyway this is an upstream "behaviour".
Please re-close.

Loading...