Use 0666 to set files as writable.