scanning depends on access (reading) rights to a file. Otherwise, the permisson denied is returned.