You would need to chmod files to write to them, since the mode usually defaults to 0644 if I'm not wrong.
As for how to do it, well, are you running Linux or some other Unix-like OS?
If you are on M$ Windows you cant chmod, since the file permission system is a little different.