The command to see the current mode of a file in Linux is:
~ stat --format '%a' settings.php 555
The opposite of that would be:
~ chmod 555 settings.php
Reference
https://unix.stackexchange.com/questions/46915/get-the-chmod-numerical-value-for-a-file