How to make permissions persist on file?

I recently noticed ACLs weren’t working to allow 2 users to access 2 files in /home/pwdbs. The custom ACL entries would be removed when I updated Fedora. I decided to try and set both files to a group that both users are a part of.

Today I interacted with both files as user1, and both showed the owner and group as user1; user2 is soft-locked out of them. I can chgrp sharedgroup file1 file2 to restore user2’s access, but now I’m back where I was with ACLs.

How can I permanently set up these files to allow both users to access them without having to chgrp or set ACLs every time they change/I update Fedora?

My suspicion is that you are running a program that changes these files.
And the way that program works has the effect of removing the permissions.
It could be that the program deleted the file and then recreated it for example.

If you run chmod g+s on the directory containing the files, then every time you crate a new file in that directory, the file inherits the group id from the directory.

Gonna give this a try.

This appears to have worked. Thank you.