I developed a set of rules for file and directory owner and permissions for our company server. E.g.:
Projects/: permission 750, owner root, group internal
Projects/* (directories): permission 2770, group internal
Projects/*/* (files): permission 644, group internal
Projects/*/* (directories): permission 2770, group internal
Office/: permission 2770, owner root, group internal
...
I started to write a script for checking these rules. But this became really uncomfortable. An option for automatic correction would be also nice. I already discovered systemd-tmpfiles which does a similar job but (imho) lacks of reporting feature. I don't know if it will support the wildcards, too. Defining some exclusions rules would also be nice.
Does someone know if there's maybe a solution for that? I already searched for linux file system permission services, but the results were really misleading.