implements the file permissions report correctly and tests it.