Check permission of input file