Apply correct permission to log file