milis-kurulum-test.py

This commit is contained in:
milisman 2016-10-12 00:00:44 +03:00
parent 0b4e116d7d
commit 5488a8fa45
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def createUser(name,username,password):
#encPass = crypt.crypt(password,"22") #encPass = crypt.crypt(password,"22")
#os.system("useradd -p "+encPass+ " -s "+ "/bin/bash "+ "-d "+ "/home/" + username+ " -m "+ " -c \""+ name+"\" " + username) #os.system("useradd -p "+encPass+ " -s "+ "/bin/bash "+ "-d "+ "/home/" + username+ " -m "+ " -c \""+ name+"\" " + username)
os.system("kopar milis-"+name+" "+username) os.system("kopar milis-"+name+" "+username)
os.system('echo -e "'password+'\n'+password'" | passwd '+username) os.system('echo -e "'+password+'\n'+password+'" | passwd '+username)
def checkUserPassword(username): def checkUserPassword(username):
#insecure=True parolanın yıldız şeklinde gözükmesini sağlar, #insecure=True parolanın yıldız şeklinde gözükmesini sağlar,