Log in as root and right click on the file your attempting to edit, then go to the permissions tab, then go to advanced and check all the boxes to give you write privileges.

Best of luck!

-Jameson