def check(): fp = sfile.getStat("/etc/group") return (fp[0] == "0644") and (fp[1][0] == "0") and (fp[2][0] == "0")
def check(): fp = sfile.getStat("/etc/gshadow-") return (fp[0] == "0600") and (fp[1][0] == "0") and (fp[2][0] == "0")
def check(): fp = sfile.getStat("/etc/shadow") return (fp[0] == "0640") and (fp[1][0] == "0") and (fp[2][0] == "42")
def check(): fp = sfile.getStat("/etc/passwd-") return (fp[0] == "0600") and (fp[1][0] == "0") and (fp[2][0] == "0")