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