L.P.H. van Belle
2021-Nov-11 15:28 UTC
[Samba] Read Only files, Extended Attributes and Microsoft Office Documents
These.> [shared] > comment = Shared file space > path = /home/samba/shared > force group = users > group = users > read only = No > create mode = 0664 > force create mode = 0664 > directory mode = 0775 > force directory mode = 0775 > inherit permissions = Yes > guest ok = YesRead : https://chmodcommand.com/chmod-2775/ And change the directory mode. This ..> A server that has been fine for years, is now causing a small problem.No, the server is not changed, the clients did. The longer you wait with updating the server, the harder it will get to keep everything running.> This WAS possible and was working fine before a recent Ubuntu server update.+ and windows updates This part.> That '+' shows that extended ACL's exist, you can see these with 'getfacl'.Thanks, here is the output of 'getfacl' on the test folder... You say, the .txt and the .doc is saved from a windows pc. Thats true but also no true. After you opened and you save a .txt, its save and done. After you opened a word doc, its ~RanD0m.tmp , press save and ~RanD0m.tmp is renamed to the .doc name. As you see these 2 process are not simular. Oplocks can bug the .doc where .txt doesnt have that. (as far i know then). Now, why the .txt does not have a acl set and the .doc.. Saved from the same pc? Thats one i dont know also. So, 2 solutions here. 1) set 2775 on the folders and hope for the best in the future. 2) update the servers and for see a great future without/less hassel. And remember, less is better, less installed, less thing changed in smb.conf. I hope this helped a bit. Greetz, Louis
Paul Littlefield
2021-Nov-11 16:47 UTC
[Samba] Read Only files, Extended Attributes and Microsoft Office Documents
On 11/11/2021 15:28, L.P.H. van Belle via samba wrote:> So, 2 solutions here. > > 1) set 2775 on the folders and hope for the best in the future. > 2) update the servers and for see a great future without/less hassel. > > And remember, less is better, less installed, less thing changed in smb.conf. > > I hope this helped a bit. >Yes, I do like suggestions I can implement quickly. Yes, I shall liaise with the client to update their server and Samba etc. I shall report back with the result of your 2775 permissions on the folder. Lovely stuff. Regards, Paully