chmod o-rwx "${whitelist_path}"
chgrp -fR "${1}" "${whitelist_path}"
Can we swap the order? chgrp first then chmod? Reason: race conditions. Whitelisted group should always be able to access.
chmod o-rwx “${whitelist_path}”
Should --recursive be considered? Dunno.
Did you consider for each chmod or chgrp command if --recursive should be used please?