How do I stop file permissions changing when I save a document in another user account?

Isaacson

I have a file owned by user1:group1. It has permission 770 deliberately so that other users in group1 can collaborate on it. When I open the file as user2 (who is in group1), I can edit it and save changes as expected, but when I save those changes the file ownership is changed to user2:user2.

The closest I found to the problem from my google search was this question prevent group ownership change on file save Which seemed to just say “put up with it”, but that was five years ago. Surely it can't still be the case that collaboration isn't possible within Linux desktop environments, so what am I doing wrong?

Johan Myréen

If you set the "set group id" (SGID) bit on a directory, the files created in the directory inherit the group id of the directory, instead of the primary group id of the creating user. New subdirectories also get the SGID bit set automatically, so you don't need to do it manually; existing subdirectories must be changed manually, though.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I stop a file changing groups when it is edited

From Dev

How do I give permissions to another user on firebase?

From Dev

How do I allow only one user to su to another account?

From Dev

How do I allow only one user to su to another account?

From Dev

How do I fix the image size when changing to another image?

From Dev

How do I fix the image size when changing to another image?

From Dev

How do I prompt a user with file "Save As" dialog using a macro?

From Dev

how do i save three inputs to a file with same name as the user?

From Dev

How do I stop nHibernate to save on a view?

From Dev

In Grails, how do I save the locale when the user changes the language?

From Dev

How do I print file permissions as a string?

From Dev

How do I remove a file with no permissions?

From Dev

How can I prevent VirtualBox from changing the permissions on the .vbox File?

From Dev

How do I migrate my Transmission state & settings to another user account?

From Dev

How do I stop my UITableView from changing size in popover inappropriately on reload when keyboard is active?

From Dev

How do I stop Chromium from changing tab when a page is loaded?

From Dev

How can I save the inputted work if the user types "Stop"

From Dev

Swfobject is changing "&"(ampersand) to "&" How do I stop it?

From Dev

How do I stop a link changing color on hover?

From Dev

How do I stop a link changing color on hover?

From Dev

How do I stop Outlook from changing its icon in the taskbar?

From Dev

How do I stop automatic changing of iterm tab titles?

From Dev

how do i stop my bootstrap carousel from changing size

From Dev

How do I write a DOM Document to File?

From Dev

Excel messes with my formula when copied, how can I stop I stop it changing one part but not the other?

From Dev

How do I stop parsing an XML document with IVBSAXXMLReader in Delphi?

From Dev

How do I stop trusting an individual workbook/document in Excel?

From Dev

How do I grant different permissions for each user?

From Dev

How do I serialize or save to a file a Thunk?

Related Related

  1. 1

    How do I stop a file changing groups when it is edited

  2. 2

    How do I give permissions to another user on firebase?

  3. 3

    How do I allow only one user to su to another account?

  4. 4

    How do I allow only one user to su to another account?

  5. 5

    How do I fix the image size when changing to another image?

  6. 6

    How do I fix the image size when changing to another image?

  7. 7

    How do I prompt a user with file "Save As" dialog using a macro?

  8. 8

    how do i save three inputs to a file with same name as the user?

  9. 9

    How do I stop nHibernate to save on a view?

  10. 10

    In Grails, how do I save the locale when the user changes the language?

  11. 11

    How do I print file permissions as a string?

  12. 12

    How do I remove a file with no permissions?

  13. 13

    How can I prevent VirtualBox from changing the permissions on the .vbox File?

  14. 14

    How do I migrate my Transmission state & settings to another user account?

  15. 15

    How do I stop my UITableView from changing size in popover inappropriately on reload when keyboard is active?

  16. 16

    How do I stop Chromium from changing tab when a page is loaded?

  17. 17

    How can I save the inputted work if the user types "Stop"

  18. 18

    Swfobject is changing "&"(ampersand) to "&" How do I stop it?

  19. 19

    How do I stop a link changing color on hover?

  20. 20

    How do I stop a link changing color on hover?

  21. 21

    How do I stop Outlook from changing its icon in the taskbar?

  22. 22

    How do I stop automatic changing of iterm tab titles?

  23. 23

    how do i stop my bootstrap carousel from changing size

  24. 24

    How do I write a DOM Document to File?

  25. 25

    Excel messes with my formula when copied, how can I stop I stop it changing one part but not the other?

  26. 26

    How do I stop parsing an XML document with IVBSAXXMLReader in Delphi?

  27. 27

    How do I stop trusting an individual workbook/document in Excel?

  28. 28

    How do I grant different permissions for each user?

  29. 29

    How do I serialize or save to a file a Thunk?

HotTag

Archive