Go2Linux shows you how to copy file permissions from one file to another
You may know how to change file permissions using chmod but, if you already have a file with the permissions you want to assign to some other files, you can use --reference option in chmodHow to copy file permissions from one file to another
How to copy or replicate file permissions, using another file as reference