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