passusr.py
This commit is contained in:
parent
a28bbb33b1
commit
9c37b351ec
@ -21,10 +21,7 @@ else:
|
||||
res = os.system ("getent passwd "+login)
|
||||
if res != 0:
|
||||
passw = ["pwgen", "4","1"]
|
||||
#passw = "pwgen 4 1"
|
||||
os.system (cmd)
|
||||
#mdp = str(os.system (passw))
|
||||
#print (mdp)
|
||||
mdp = subprocess.run(passw,capture_output=True)
|
||||
mdp2 = mdp.stdout.decode("utf-8")
|
||||
mdp3 = mdp2.rstrip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user