If you have two files and one of the files needs to have the same permissions as the other just use the following command:
chmod --reference targetfile sourcefile
If you have two files and one of the files needs to have the same permissions as the other just use the following command:
chmod --reference targetfile sourcefile