ACL's (access control lists) are ideal for when you need fine-grained permission control in Linux. The challenge when using ACLs is finding a code editor which preserves those ACL permissions upon save. Most code editors are not designed with ACLs in mind, and these are lost when saving a file, leaving only the standard Linux permissions.
Here are Linux code editors which preserve ACLs.
Read more