If you're worried about the file permissions on your Linux system being changed, it's possible to back up the file permissions of a certain set of files or directories with the getfacl
command.
This is a companion discussion topic for the original entry at https://linuxconfig.org/backup-permissions-in-linux