You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2020/11/12 08:46:37 UTC

[Issue 128413] New: .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executables

https://bz.apache.org/ooo/show_bug.cgi?id=128413

          Issue ID: 128413
        Issue Type: DEFECT
           Summary: .desktop files installed by .deb archive in
                    /opt/openoffice4/share/xdg are not executables
           Product: Installation
           Version: 4.2.0-dev
          Hardware: PC
                OS: Linux 64-bit
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: ui
          Assignee: issues@openoffice.apache.org
          Reporter: ardovm@yahoo.it
  Target Milestone: ---

This report is about version 4.1.8 but I could not select it.

Files installed by .deb archive for x86_64 architecture are not "executable" by
KDE because:
 1- they are not owned by root (but rather UID 500 and GID 500),
 2- they do not have the executable bit set.

This is happening on Ubuntu 18.04.5 LTS x86_64.

When clicking on any of the OpenOffice entries in the Applications -> Office
KDE menu, a warning appears: "This will start the program: openoffice4 %U. If
you do not trust this program, click Cancel".

When confirming, another error message appears:
"Unable to make the service OpenOffice 4.1.8 executable, aborting execution"

Two quick fixes are possible:
 - make all .desktop files in /opt/openoffice4/share/xdg executable, or
 - make all .desltop files in /opt/openoffice4/share/xdg owned by root.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

--- Comment #3 from Arrigo Marchiori <ar...@yahoo.it> ---
By the way, the DEB's for OpenOffice 4.1.7 installed all files as owned by
root:root. And it worked perfectly.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Jim Jagielski <ji...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jim@apache.org

--- Comment #7 from Jim Jagielski <ji...@apache.org> ---
This will be resolved in AOO 4.1.9

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Peter <pe...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |CONFIRMED

--- Comment #4 from Peter <pe...@apache.org> ---
I checked a bit closer. And I can see with an ll :
~/Downloads/de/DEBS/temp/usr/bin$ ll /opt/openoffice4 
insgesamt 72
drwxr-xr-x  7  500  500  4096 Nov 11 23:12 ./
drwxr-xr-x 12 root root  4096 Nov 11 23:12 ../
drwxr-xr-x  3  500  500  4096 Nov 11 23:12 help/
drwxr-xr-x 16  500  500  4096 Nov 11 23:12 presets/
drwxr-xr-x  6  500  500 20480 Nov 11 23:12 program/
-r--r--r--  1  500  500 12075 Okt 29 18:30 README
-r--r--r--  1  500  500 12707 Okt 29 18:30 README.html
drwxr-xr-x  2  500  500  4096 Nov 11 23:12 readmes/
drwxr-xr-x 22  500  500  4096 Nov 11 23:12 share/

which is strange. However I have no usage issue.

workaround:
sudo chown -R root /opt/openoffice4
sudo chgrp -R root /opt/openoffice4

However setting this issue to confirmed.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Arrigo Marchiori <ar...@yahoo.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|.desktop files installed by |.desktop files installed by
                   |.deb archive in             |.deb archive in
                   |/opt/openoffice4/share/xdg  |/opt/openoffice4/share/xdg
                   |are not executables         |are not executable

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

--- Comment #2 from Arrigo Marchiori <ar...@yahoo.it> ---
Hello Peter,

I used "dpkg -i" instead of "apt install". However I tried your exact command
and I got the same problem.

All the files in /opt/openoffice4 seem to be owned by user 500, group 500. I
wonder if this is intentional?

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Keith N. McKenna <kn...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |knmc@apache.org
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Keith N. McKenna <kn...@apache.org> ---
Resolved by commit 4975252caf49bc46c383c6cef330cb927a635806

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Matthias Seidel <ms...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mseidel@apache.org
              Flags|                            |4.1.9_release_blocker?

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Arrigo Marchiori <ar...@yahoo.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Deb distribution installs   |.desktop files installed by
                   |files with UID 500          |.deb archive in
                   |                            |/opt/openoffice4/share/xdg
                   |                            |are not executable

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Matthias Seidel <ms...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|4.1.9_release_blocker?      |4.1.9_release_blocker+

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] Deb distribution installs files with UID 500

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Arrigo Marchiori <ar...@yahoo.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.2.0-dev                   |4.1.8

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] Deb distribution installs files with UID 500

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Arrigo Marchiori <ar...@yahoo.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|.desktop files installed by |Deb distribution installs
                   |.deb archive in             |files with UID 500
                   |/opt/openoffice4/share/xdg  |
                   |are not executable          |

--- Comment #5 from Arrigo Marchiori <ar...@yahoo.it> ---
The fact that installed files are not owned by root is IMHO a bug.

According to (quite old) customs, UID 500 may be the first non-root user:
https://serverfault.com/questions/362943/who-is-user-500
and this is a security issue because the program is installed at system level.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Andrea Pescetti <pe...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pescetti@apache.org

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Peter <pe...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petko@apache.org

--- Comment #1 from Peter <pe...@apache.org> ---
I used following command with out the issue you did describe:
sudo apt install ./*.deb ./desktop-integration/*.deb

What command(s) did you use?

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

Matthias Seidel <ms...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.9

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 128413] .desktop files installed by .deb archive in /opt/openoffice4/share/xdg are not executable

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=128413

--- Comment #6 from Arrigo Marchiori <ar...@yahoo.it> ---
I tried a very simple test case with the epm program on my openSUSE system.
Not being Debian-based, I had to install by hand the dpkg program.

When I tried to make a deb package I was given the following warning:

epm: Warning - file permissions and ownership may not be correct
     in Debian packages unless you run EPM as root or the 'fakeroot'
     command is available!

The generated deb file contained in fact wrong permissions, same as the
OpenOffice 4.1.8 release archives.

After installing the fakeroot package, the warning message disappeared and the
generated deb file was good.

Is it possible, then, that the OpenOffice build system does not have the
'fakeroot' program installed?

Please note I have used epm 5.0.0 for the above test. I cannot find the link to
download the previous version.

-- 
You are receiving this mail because:
You are the assignee for the issue.