Bug 30520

Summary: dh-umc-module-install installs files with permission 0755 instead of 0644
Product: UCS Reporter: Philipp Hahn <hahn>
Component: UMC (Generic)Assignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Daniel Tröder <troeder>
Severity: minor    
Priority: P5 CC: best, gohmann, walkenhorst
Version: UCS 4.1Flags: hahn: Patch_Available+
Target Milestone: UCS 4.1-0-errata   
Hardware: All   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=36790
https://forge.univention.org/bugzilla/show_bug.cgi?id=29233
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional): Cleanup
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 29233    
Attachments: Add missing -m644

Description Philipp Hahn univentionstaff 2013-02-20 14:02:31 CET
Created attachment 5086 [details]
Add missing -m644

For example lintian on UVMM:

executable-not-elf-or-script
./usr/share/locale/de/LC_MESSAGES/univention-management-console-module-uvmm.mo
executable-not-elf-or-script
./usr/share/univention-management-console/modules/uvmm.xml
executable-not-elf-or-script
./usr/share/univention-management-console-frontend/js/umc/modules/i18n/de/uvmm.json
executable-not-elf-or-script
./usr/share/univention-management-console/i18n/de/uvmm.mo

By default /usr/bin/install installes files as `u=rwx,go=rx,a-s', so for
non-executable files -m644 must be explicitly added.

The other dh-umc-* helpers should be checked for similar problems.
Comment 1 Florian Best univentionstaff 2015-01-09 15:24:58 CET
*** Bug 29233 has been marked as a duplicate of this bug. ***
Comment 2 Philipp Hahn univentionstaff 2015-12-03 13:20:39 CET
*** Bug 36790 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2016-01-18 10:48:45 CET
univention-management-console.yaml:
r66834 | YAML Bug #30520

univention-management-console (8.0.28-4):
r66833 | Bug #30520: Bug #40341:
Comment 4 Daniel Tröder univentionstaff 2016-01-25 12:34:46 CET
OK: code
OK: advisory
OK: manual test:

root@ucs26:~/sync/univention-self-service# ls -l /usr/share/univention-management-console-frontend/js/umc/modules/i18n/de/passwordreset.json /usr/share/locale/de/LC_MESSAGES/univention-self-service-passwordreset-umc.mo /usr/share/univention-management-console/i18n/de/passwordreset.mo 
-rwxr-xr-x 1 root root 2592 Jan 15 14:47 /usr/share/locale/de/LC_MESSAGES/univention-self-service-passwordreset-umc.mo
-rwxr-xr-x 1 root root    2 Jan 15 14:47 /usr/share/univention-management-console-frontend/js/umc/modules/i18n/de/passwordreset.json
-rwxr-xr-x 1 root root  602 Jan 15 14:47 /usr/share/univention-management-console/i18n/de/passwordreset.mo


root@ucs26:~/sync/univention-self-service# rm ../*.deb; dpkg-buildpackage -us -uc -b && dpkg -i ../*.deb 

root@ucs26:~/sync/univention-self-service# ls -l /usr/share/univention-management-console-frontend/js/umc/modules/i18n/de/passwordreset.json /usr/share/locale/de/LC_MESSAGES/univention-self-service-passwordreset-umc.mo /usr/share/univention-management-console/i18n/de/passwordreset.mo 
-rw-r--r-- 1 root root 2592 Jan 25 12:23 /usr/share/locale/de/LC_MESSAGES/univention-self-service-passwordreset-umc.mo
-rw-r--r-- 1 root root    2 Jan 25 12:23 /usr/share/univention-management-console-frontend/js/umc/modules/i18n/de/passwordreset.json
-rw-r--r-- 1 root root  602 Jan 25 12:23 /usr/share/univention-management-console/i18n/de/passwordreset.mo
Comment 5 Janek Walkenhorst univentionstaff 2016-01-27 16:26:11 CET
<http://errata.software-univention.de/ucs/4.1/66.html>