You are not logged in.



#1 2012-02-10 07:43:07

tomask
Member
From: Dublin
Registered: 2006-11-14
Posts: 63

[APG 2.6.1 linux] - 64b .tar.gz wrong permission AutopanoGiga/Resource

First of all, I think 2.6.2 rocks under Linux (x86_64 OpenSuSE 12.1 in my case). This is absolutely brilliant.

I am not sure if this is in 2.6.2 RC or other versions ... When untarring 64b .tar.gz I get: wrom permissions for Resources and any files/dirs in it:
# ls -l /usr/share/AutopanoGiga/
total 58116
-rwxr-xr-x 1 root root 38129256 Jan 22 15:57 AutopanoGiga
-rwxr-xr-x 1 root root      175 Jan 22 15:57 AutopanoGiga.sh
-rw-r--r-- 1 root root    17812 Jan 22 15:57 Copyright
-rw-r--r-- 1 root root   745648 Jan 22 15:57 libiomp5.so
-rw-r--r-- 1 root root  3299096 Jan 22 15:57 libKGFL_linux64.so
-rw-r--r-- 1 root root  2930112 Jan 22 15:57 libQtCore.so.4
-rw-r--r-- 1 root root 11843752 Jan 22 15:57 libQtGui.so.4
-rw-r--r-- 1 root root  1171968 Jan 22 15:57 libQtNetwork.so.4
-rw-r--r-- 1 root root  1030632 Jan 22 15:57 libQtOpenGL.so.4
-rw-r--r-- 1 root root   311288 Jan 22 15:57 libQtXml.so.4
drwxr-xr-x 2 root root     4096 Jan 22 15:57 Plugins
drwx------ 6 root root     4096 Jan 22 15:10 Resources
#
# ls -l /usr/share/AutopanoGiga/Resources
total 24
drwx------ 2 root root  4096 Jan 22 15:10 Data
drwx------ 2 root root  4096 Jan 22 15:10 Sound
drwx------ 2 root root  4096 Jan 22 15:10 Translation
drwx------ 3 root root 12288 Jan 22 15:10 UI

... recursively.

Following commands fix it:
# find /usr/share/AutopanoGiga -type d -exec chmod a+rx {} \;
# find /usr/share/AutopanoGiga -type f -exec chmod a+r {} \;

Best regards, Tomas

Offline

 

#2 2012-02-10 09:36:07

AlexandreJ
Absolute beginner
From: Challes les eaux, France
Registered: 2005-11-14
Posts: 7631
Website

Re: [APG 2.6.1 linux] - 64b .tar.gz wrong permission AutopanoGiga/Resource

Issue 1163 opened

Offline

 

#3 2012-02-10 11:36:46

ygilquin
Member
From: Challes les Eaux
Registered: 2010-09-29
Posts: 110
Website

Re: [APG 2.6.1 linux] - 64b .tar.gz wrong permission AutopanoGiga/Resource

Hi Tomas,
did you run tar command as root user ?


--
Yann G.
www.kolor.com

Offline

 

#4 2012-02-14 23:41:05

tomask
Member
From: Dublin
Registered: 2006-11-14
Posts: 63

Re: [APG 2.6.1 linux] - 64b .tar.gz wrong permission AutopanoGiga/Resource

Yes, I did untar it as root.

Users do not have write access to /usr in all distributions I know. It is also visible in the listing - files are owned by root.

To double check on your side - try downloading: AutopanoGiga_Linux64_261_2012-01-23.tar.gz and run:
> tar tfvz AutopanoGiga_Linux64_261_2012-01-23.tar.gz

I see:
drwxr-xr-x root/root         0 2012-01-22 15:57 AutopanoGiga/
drwxr-xr-x root/root         0 2012-01-22 15:57 AutopanoGiga/Plugins/
-rw-r--r-- root/root    588360 2012-01-22 15:57 AutopanoGiga/Plugins/libKPanoHead_linux64.so
-rw-r--r-- root/root    114896 2012-01-22 15:57 AutopanoGiga/Plugins/libKExternal_linux64.so
-rw-r--r-- root/root    129016 2012-01-22 15:57 AutopanoGiga/Plugins/libKPanotools_linux64.so
-rw-r--r-- root/root  10628464 2012-01-22 15:57 AutopanoGiga/Plugins/libKOpenLens_linux64.so
-rw-r--r-- root/root  24010816 2012-01-22 15:57 AutopanoGiga/Plugins/libKHaze_linux64.so
-rw-r--r-- root/root   2930112 2012-01-22 15:57 AutopanoGiga/libQtCore.so.4
-rw-r--r-- root/root    745648 2012-01-22 15:57 AutopanoGiga/libiomp5.so
-rw-r--r-- root/root    311288 2012-01-22 15:57 AutopanoGiga/libQtXml.so.4
-rwxr-xr-x root/root       175 2012-01-22 15:57 AutopanoGiga/AutopanoGiga.sh
-rw-r--r-- root/root   3299096 2012-01-22 15:57 AutopanoGiga/libKGFL_linux64.so
-rw-r--r-- root/root     17812 2012-01-22 15:57 AutopanoGiga/Copyright
-rw-r--r-- root/root   1030632 2012-01-22 15:57 AutopanoGiga/libQtOpenGL.so.4
-rw-r--r-- root/root   1171968 2012-01-22 15:57 AutopanoGiga/libQtNetwork.so.4
-rw-r--r-- root/root  11843752 2012-01-22 15:57 AutopanoGiga/libQtGui.so.4
drwx------ root/root         0 2012-01-22 15:10 AutopanoGiga/Resources/
drwx------ root/root         0 2012-01-22 15:10 AutopanoGiga/Resources/Sound/
-rw------- root/root    119384 2012-01-22 15:10 AutopanoGiga/Resources/Sound/notify.wav
drwx------ root/root         0 2012-01-22 15:10 AutopanoGiga/Resources/UI/
-rw------- root/root      1997 2012-01-22 15:10 AutopanoGiga/Resources/UI/tool_vertical.png
-rw------- root/root      3793 2012-01-22 15:10 AutopanoGiga/Resources/UI/level.png
-rw------- root/root       618 2012-01-22 15:10 AutopanoGiga/Resources/UI/exif_lens.png
-rw------- root/root      1300 2012-01-22 15:10 AutopanoGiga/Resources/UI/iconwait_01.png
-rw------- root/root       667 2012-01-22 15:10 AutopanoGiga/Resources/UI/exif_nb_image.png
-rw------- root/root      2939 2012-01-22 15:10 AutopanoGiga/Resources/UI/dropdown_arrow_2.png
.
.
.
v

I hope it helps, Tomas

Offline

 

#5 2012-02-15 09:09:34

ygilquin
Member
From: Challes les Eaux
Registered: 2010-09-29
Posts: 110
Website

Re: [APG 2.6.1 linux] - 64b .tar.gz wrong permission AutopanoGiga/Resource

Hi Tomas,
I understand what you did. Prefer running tar as user in some user space folder and then as root copy it wherever you want.
For example create a folder /opt/Kolor/, update your PATH env variable to point in it, and copy extracted content in it.

If you really want to install it in a more distribution compliant way, please use some conversion tool to get a rpm package from debian .deb package we provide.

I hope this will help you. Please tell me.


--
Yann G.
www.kolor.com

Offline

 

#6 2012-02-28 06:24:37

tomask
Member
From: Dublin
Registered: 2006-11-14
Posts: 63

Re: [APG 2.6.1 linux] - 64b .tar.gz wrong permission AutopanoGiga/Resource

My apology for not responding faster ...

As I mention, I know what to do to fix the permissions. It is small inconvenience and as long as there will not be another ones piling on the top of this over the time ..... I will live with it. I certainly can document it, so I will not forget to set it the next time. Anyway, I'm used to way worse neglect/trouble/.... as Linux user. So I am not going to argue.

In my opinion, safe/secure and working permissions should be set at source. It removes additional work, debug and sets things standard for users.

As about converting .deb to .rpm .... I wish you best luck doing that. I myself value my time and trouble and will use provided tar file - it is easier, standard and reliable. Thankfully, missing dependendencies do show up on the command line at the start.

If you really want to be nice and want my opinion - then please fix it. It will cost you 5 minutes of one time effort + list all external dependencies in README inside the tar file. :-)

I consider this closed and thank you for responding.

Offline

 

#7 2012-02-28 10:18:12

ygilquin
Member
From: Challes les Eaux
Registered: 2010-09-29
Posts: 110
Website

Re: [APG 2.6.1 linux] - 64b .tar.gz wrong permission AutopanoGiga/Resource

Tarball files permissions will be correctly set in next release.


--
Yann G.
www.kolor.com

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson