gives too little permissions to extracted files by default

Bug #436699 reported by muszek
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
File Roller
Confirmed
Medium
file-roller (Debian)
New
Undecided
Unassigned
file-roller (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Package: file-roller (or some lower-level package)

This happens to me _a lot_. I get some archive from the web, extract it only to find out that file-roller didn't give "read" (and "execute" in case of directories) permision to "group" and "others". Typical scenario (just happened):

I download some (compressed) javascript library to include it in my app. I use nautilus to extract its contents. I use the web browser to access those files and I get a "forbidden" code (because files are being accessed by the web server, which is not the owner of those files).

Here's the story of one archive extracted by midnight commander and nautilus' file-roller:

muszek@bobek:~/www/katarzynamucha/app/webroot/js$ ls -l colorbox-nautilus/
total 280
drwx------ 2 muszek muszek 4096 2009-09-25 17:33 colorbox
-rw-r--r-- 1 muszek muszek 235313 2009-07-30 22:43 colorbox.ai
drwx------ 2 muszek muszek 4096 2009-09-25 17:33 content
drwx------ 3 muszek muszek 4096 2009-09-25 17:33 example1
drwx------ 3 muszek muszek 4096 2009-09-25 17:33 example2
drwx------ 3 muszek muszek 4096 2009-09-25 17:33 example3
drwx------ 3 muszek muszek 4096 2009-09-25 17:33 example4
drwx------ 3 muszek muszek 4096 2009-09-25 17:33 example5
-rw-r--r-- 1 muszek muszek 14260 2009-09-16 18:49 README
muszek@bobek:~/www/katarzynamucha/app/webroot/js$ ls -l colorbox-mc
total 280
drwxr-xr-x 2 muszek muszek 4096 2009-09-16 17:49 colorbox
-rw-r--r-- 1 muszek muszek 235313 2009-07-30 21:43 colorbox.ai
drwxr-xr-x 2 muszek muszek 4096 2009-09-16 17:52 content
drwxr-xr-x 3 muszek muszek 4096 2009-09-16 17:52 example1
drwxr-xr-x 3 muszek muszek 4096 2009-08-17 09:00 example2
drwxr-xr-x 3 muszek muszek 4096 2009-09-16 02:01 example3
drwxr-xr-x 3 muszek muszek 4096 2009-09-16 17:10 example4
drwxr-xr-x 3 muszek muszek 4096 2009-08-17 09:00 example5
-rw-r--r-- 1 muszek muszek 14260 2009-09-16 17:49 README

affects: ubuntu → file-roller (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in file-roller (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

do you get the permission set correctly when extracting using the command line tools directly for the archive format you are using?

summary: - file-roller gives too little permissions to extracted files by default
+ gives too little permissions to extracted files by default
Revision history for this message
muszek (muszek) wrote :

<em>do you get the permission set correctly when extracting using the command line tools directly for the archive format you are using?</em> (let's hope basic html works...)

yes, here's the output:

***
muszek@bobek:/tmp$ unzip colorbox.zip
[cut!]
muszek@bobek:/tmp$ ls -l colorbox
total 280
drwxr-xr-x 2 muszek muszek 4096 2009-09-16 17:49 colorbox
-rw-r--r-- 1 muszek muszek 235313 2009-07-30 21:43 colorbox.ai
drwxr-xr-x 2 muszek muszek 4096 2009-09-16 17:52 content
drwxr-xr-x 3 muszek muszek 4096 2009-09-16 17:52 example1
drwxr-xr-x 3 muszek muszek 4096 2009-08-17 09:00 example2
drwxr-xr-x 3 muszek muszek 4096 2009-09-16 02:01 example3
drwxr-xr-x 3 muszek muszek 4096 2009-09-16 17:10 example4
drwxr-xr-x 3 muszek muszek 4096 2009-08-17 09:00 example5
-rw-r--r-- 1 muszek muszek 14260 2009-09-16 17:49 README
***

I'm attaching the archive used in examples, just in case someone wanted to reproduce the bug on his own. It comes from http://colorpowered.com/colorbox/

Revision history for this message
muszek (muszek) wrote :

I've had some suspicions and tested them on my wive's computer. File roller gave _correct_ permissions to files. I've had Ubuntu on my lappy from day one (AFAIR I got it after Feisty came out) and must have messed something up on the way.

Please feel free to re-assess whether this ticket still deserves dev's attention.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for the extra details, the issue would need investigation to determine what option leads to the difference but it's rather a low importance one if that's not happening to lot of users

Revision history for this message
Pedro Villavicencio (pedro) wrote :

I've sent this upstream at: https://bugzilla.gnome.org/show_bug.cgi?id=597562 ;feel free to subscribe to that upstream report as well, thanks.

Changed in file-roller (Ubuntu):
status: New → Triaged
Changed in file-roller:
importance: Undecided → Unknown
status: New → Unknown
Changed in file-roller:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Paul Leger (pleger) wrote :

Hi,
     I just spent a lot of time (1 to 2 hrs) for this bug. I downloaded a zip file from Firefox, then and I decompressed in a folder. Later, I tried opening/execute from Firefox and couldn't. If you can solve this bug, I would be very happy.

Best,
Paul Leger, an angry man.

Changed in file-roller (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
Revision history for this message
Artscoop93 (artscoop93) wrote :

Exact same bug 3 years later, zip files are extracted with wrong permissions, 700 instead of 722. I've seen this constant behaviour on every distribution since 10.04, on every machine (6 total).

Revision history for this message
Thomas Hunziker (thomas-hunziker) wrote :

I have the same issue with multiple installation of Ubuntu 12.04. Is there some workaround?

Revision history for this message
reda (reda-abdi) wrote :

Bug noticed on Debian GNU/Linux 7 \n \l with file roller 3.4.2-1

Changed in file-roller:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.