def METHOD_NAME(self):
    if os.name != "posix":
        self.skipTest("Permission checks only works on posix systems")
    filepath = self.createFileTemp(self.tmp_dir, "tempfile2.txt",
                                   chmodRights=stat.S_IRGRP)
    expctd_msg_error = " on file tempfile2.txt are too " \
                       "open. It is required that your secret files are" \
                       " NOT accessible by others!"
    with self.assertRaisesConfigError(expctd_msg_error):
        self.srvfile.checkConfig(self.tmp_dir)
    os.remove(filepath)