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