Editing/replacing Defaults.php file

Trying to edit the defaults.php file, however it is “read-only”.
Have tried everything to remove this and nothing has worked.
Can anyone help me out as I need to replace or edit this file but it wont let me save the new changes due to the read-only permission.
Even changing permissions wont let me do anything.