On 15/07/2024 12:51, TimS wrote:
I've got a file server here - a 2014 Mini running Monterey, with a 1TB internal SSD. I've set up a partition on that which is shared to me and SWMBO on our own Minis. Our usernames and id's (? whatever they're called - I'm 501 and she's 502) are the same on all three machines, and the sharing is set up on the server with both of us listed.
The difficulty is Office 2016. It seems intent, when it creates a new file, on
it having permisssions u+rw,g+r which is a nuisance as it means we can't edit each other's files. Even if I go in and manually set the permissions, that only works until the file is next saved. At this point Office saves the file to a temp name, deletes the old, and then renames the temp. A new file, you see, which gets the permissions as above.
Anyone know a way to get it to create with u+rw,g+rw ?
Thanks.
Don't have a file server to test so SMB or AFP (whichever you're using)
might mess things up but (on the fileserver Mini)
chmod g+s <directory>
tags the directory so that all files created in it inherit the same
group permissions as the directory itself (ignoring your own current
group). But if the two groups are the same then bob's your uncle.
So, combining steps:
chgrp staff <directory>
chmod g+rws <directory>
Of course, this could all be undone if Word deliberately overrides those defaults.
There's probably an Access Control List (ACL) way of doing this which
might be more "approved" these days but since it's a home setup...
--
Bruce Horrocks
Surrey, England
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)