-rw-r----- 1 user groupname footer.tpl
-rw-r----- 1 user user footer.tpl
chmod g+s folder
On most systems, if a directory’s set-group-ID bit is set, newly created subfiles inherit the same group as the directory, and newly created subdirectories inherit the set-group-ID bit of the parent directory.