https://bugs.freedesktop.org/show_bug.cgi?id=60338
Priority: medium
Bug ID: 60338
Assignee: [email protected]
Summary: FILESAVE: Saved files have incorrect permissions on
linux
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: Other
Whiteboard: BSA
Status: UNCONFIRMED
Version: 3.6.5.2 release
Component: UI
Product: LibreOffice
Created attachment 74259
--> https://bugs.freedesktop.org/attachment.cgi?id=74259&action=edit
A sample file with a macro that will save 10000 identical pdfs. Run this test
case and look for incorrect permissions on the saved pdfs.
Problem description:
On our office machines we have umask set to 002. Normally files saved from
LibreOffice will be saved with permissions rw-rw-r.
With no discernible cause, LibreOffice will suddenly start saving files with
permissions rw------.
We have duplicated this problem on nfs shares and on a local drive. The problem
comes and goes. We have seen it primarily on exported pdf's that we create with
a macro, but we have also seen it on calc documents that are saved manually,
and a few times on writer documents. Once the problem starts it seems to affect
other documents being saved, until the problem ends. Closing and restarting
LibreOffice corrects the problem temporarily.
Steps to reproduce:
This is a very random problem. Saving 10s of files manually I did not get an
occurrence. I created a macro to save 10000 files. Even then I do not always
see the problem. You may have to follow the steps below multiple times to see
the problem.
0. Type umask from a command prompt and make sure you have a umask that allows
group and world permissions. (002 or 022 are common). Save a file from
LibreOffice and check the permissions to see that there are some permissions
shown for group or world.
1. Open the attached document and enable macros to run.
2. In the main macro of the document, edit the path variable to a directory on
your local machine where you can have 10000 new files created.
3. Run the macro
4. While the macro is running, edit and save documents in other LibreOffice
windows and even use different programs on your computer. (This seems to
increase the chances of seeing the problem).
5. When the macro has finished running, try the following command from the
directory where the files were saved:
find -perm 600
If any files are returned, you have duplicated the problem.
3. Type
ls -lt | less
and look at the permissions and see how they change over time
Current behavior:
Seemingly randomly, saved files will have only rw------ permissions, meaning no
one but the owner can read (or write) them.
Expected behavior:
With a umask of 002, saved files should have permissions rw-rw-r and they
usually do.
Operating System: Linux (Other)
Version: 3.6.5.2 release
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs