Currently trying to use gdal_merge within qgis to stack three raster bands, the command it's showing is like this:

gdal_merge.bat -separate -of GTiff -o out.tif "LC80190302014126LGN00_B4.TIF" "LC80190302014126LGN00_B3.TIF" "LC80190302014126LGN00_B2.TIF"

however it keeps giving me ERROR 1: TIFFOpen:out.tif: Permission denied

I realize this should be a fairly simple procedure, is there something obvious I'm missing here?

  • 1
    Message "Permission denied" suggests clearly that you do not have right to write into the default directory what ever it is. Edit the part "-o out.tif" to point to some directory where you can for sure write new files.
    – user30184
    Jun 10, 2014 at 16:02
  • Good, I copied the comment into an answer.
    – user30184
    Jun 10, 2014 at 17:06

1 Answer 1


"TIFFOpen:out.tif: Permission denied" message means that you do not have enough rights to write a new file into the target directory. Edit the -o parameter to point to some directory where you have write access.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.