MamasBoyGitHub / universal-media-server

Automatically exported from code.google.com/p/universal-media-server
GNU General Public License v2.0
0 stars 0 forks source link

Linux release 2.2.0 tgz has broken permissions on folders #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The permissions of the documentation and plugins directories rights are set to 
000 meaning they can't be opened or even extracted.

What steps will reproduce the problem?
1. Download the linux UMS-2.2.0.tgz an a linux machine
2. Extract using tar -xzf UMS-2.2.0.tgz 
3.

What is the expected output?

Extraction completes without errors.

What do you see instead?

tar: ums-2.2.0/documentation/applications.html: Cannot open: Permission denied
tar: ums-2.2.0/documentation/avisynth.html: Cannot open: Permission denied
tar: ums-2.2.0/documentation/coreavc.html: Cannot open: Permission denied
...

What version of the product are you using? On what operating system?

Archlinux, UMS 2.2.0 Linux

Original issue reported on code.google.com by ich.nutz...@googlemail.com on 14 Dec 2012 at 12:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
..and with UMS-2.2.1.tgz is the same.

Original comment by sopo...@commercedat.net on 21 Dec 2012 at 3:16

GoogleCodeExporter commented 8 years ago
I as well had the same problem. Extracting as root fixes the problem, but then 
the program does not work as expected (errors playing from all devices)

Original comment by lemtarga...@gmail.com on 28 Dec 2012 at 3:14

GoogleCodeExporter commented 8 years ago
Still a problem with 2.2.2...

I see that the directory permissions are:

d--------- 4 user user 4.0K Jan  3 00:13 documentation
d--------- 2 user user 4.0K Jan  3 00:13 plugins
drwxrwxr-x 2 user user 4.0K Jan  6 10:20 renderers

So it's not ownership issues, but that it has been tar'd with the incorrect 
permissions.

My process was 

$ tar -zxf UMS-2.2.2.tgz
tar: ums-2.2.2/documentation/applications.html: Cannot open: Permission denied
... etc

$ rm -rf ums-2.2.2/
rm: cannot remove `ums-2.2.2/documentation': Permission denied
... etc

$ sudo rm -rf ums-2.2.2/
# At this point the directory successfully removed

$ gzip -d UMS-2.2.2.tgz

$ sudo tar -zxf UMS-2.2.2.tgz

$ rm -rf UMS-2.2.2.tgz

$ sudo chown  -Rc user.user  ums-2.2.2

$ chmod -R u+rwx ums-2.2.2

Original comment by forbesmy...@gmail.com on 6 Jan 2013 at 11:13

GoogleCodeExporter commented 8 years ago
The problem is still present in 2.2.4 

The rights for directories should be 755 to allow exporation and writting. The 
problem its with the creation of the tar.gz

d--------- 0/0               0 2013-01-08 21:23 ums-2.2.4/documentation/
d--------- 0/0               0 2013-01-08 21:23 ums-2.2.4/documentation/css/
d--------- 0/0               0 2013-01-08 21:23 ums-2.2.4/documentation/images/
d--------- 0/0               0 2013-01-08 21:23 ums-2.2.4/plugins/

How are the packages created ?

Original comment by txe...@gmail.com on 14 Jan 2013 at 12:26

GoogleCodeExporter commented 8 years ago
Still present in 2.2.5

Original comment by martbh...@gmail.com on 16 Jan 2013 at 8:39

GoogleCodeExporter commented 8 years ago
Thanks for the issue report guys. When exactly did this start? Does it work 
with 2.1.2?

Original comment by subjunk on 19 Jan 2013 at 10:07

GoogleCodeExporter commented 8 years ago
Yes, 2.1.2 works fine.  I've been using that version since the problems started.

Original comment by lemtarga...@gmail.com on 19 Jan 2013 at 10:10

GoogleCodeExporter commented 8 years ago
Please test this version: http://www.spirton.com/uploads/UMS/UMS-issue25.tgz

Original comment by subjunk on 19 Jan 2013 at 11:14

GoogleCodeExporter commented 8 years ago
Works perfectly!

Original comment by lemtarga...@gmail.com on 20 Jan 2013 at 12:00

GoogleCodeExporter commented 8 years ago
OK great, that means I have almost isolated the problem. Please let me know if 
either of these ones work:

http://www.spirton.com/uploads/UMS/UMS-issue25-a222.tgz
http://www.spirton.com/uploads/UMS/UMS-issue25-a230.tgz

Original comment by subjunk on 20 Jan 2013 at 1:03

GoogleCodeExporter commented 8 years ago
A230 doesn't extract, A222 does.

Original comment by lemtarga...@gmail.com on 20 Jan 2013 at 1:36

GoogleCodeExporter commented 8 years ago
OK great, what about this?

http://www.spirton.com/uploads/UMS/UMS-issue25-a240.tgz

Original comment by subjunk on 20 Jan 2013 at 2:20

GoogleCodeExporter commented 8 years ago
That one works.

Original comment by lemtarga...@gmail.com on 20 Jan 2013 at 2:25

GoogleCodeExporter commented 8 years ago
Excellent, that means it's fixed. The fix will be in the next version. Thanks 
for testing!

Original comment by subjunk on 20 Jan 2013 at 7:30