Bug 119559 - Writing documents disobey systemwide umask
Summary: Writing documents disobey systemwide umask
Status: RESOLVED DUPLICATE of bug 119050
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-28 09:16 UTC by Jürgen Sauer
Modified: 2018-08-28 09:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürgen Sauer 2018-08-28 09:16:23 UTC
Description:
Creating a new document or saving an modified existing one, the created file is created with wrong file permissions.

All files are created as user rw only. Before existing group rw flags are disapearing.


Steps to Reproduce:
1. open a file odt or other libreoffice document, in our case on NFS Share and set up group sticky bit above the curren dir

[jojo@pc6 O-20180828-010]$ umask
0002
[jojo@pc6 O-20180828-010]$ ls -la
drwxrwxr-x 1 leander firma    206 28. Aug 11:09  ./
drwxrwxr-x 1 leander firma     54 28. Aug 10:33  ../
-rw-rw---- 1 jojo    firma 404180 28. Aug 11:03 'O-20180828-010.odt'

2. edit and save

[jojo@pc6 O-20180828-010 Servertausch]$ /usr/lib/libreoffice/program/swriter 'O-20180828-010.odt' 
[jojo@pc6 O-20180828-010 Servertausch]$ ls -la
-rw------- 1 jojo  firma 404180 28. Aug 11:09 'O-20180828-010.odt'


3. permissions of the freshly edited file are forgotten and set to user only.

Actual Results:
[jojo@pc6 O-20180828-010 Servertausch]$ /usr/lib/libreoffice/program/swriter 'O-20180828-010.odt' 
[jojo@pc6 O-20180828-010 Servertausch]$ ls -la
-rw------- 1 jojo  firma 404180 28. Aug 11:09 'O-20180828-010.odt'


Expected Results:
[jojo@pc6 O-20180828-010 Servertausch]$ /usr/lib/libreoffice/program/swriter 'O-20180828-010.odt' 
[jojo@pc6 O-20180828-010 Servertausch]$ ls -la
-rw-rw---- 1 jojo  firma 404180 28. Aug 11:09 'O-20180828-010.odt'



Reproducible: Always


User Profile Reset: Yes



Additional Info:
crreating the odt file using the correct umask, with group read and write permission

Version: 6.1.0.3
Build-ID: 6.1.0-2
CPU-Threads: 8; BS: Linux 4.18; UI-Render: Standard; VCL: gtk3_kde5; 
Gebietsschema: de-DE (de_DE.UTF-8); Calc: threaded
Comment 1 Xisco Faulí 2018-08-28 09:41:43 UTC
Thanks for reporting the issue.
This is a dupe of bug 119050

*** This bug has been marked as a duplicate of bug 119050 ***
Comment 2 deant 2018-08-28 09:45:24 UTC
so far the work around is to downgrade to 6.0, this bug is not there.