Advertisement
Guest User

Untitled

a guest
Oct 14th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import subprocess, os
  2.  
  3. name_of_user=input("Input name of user: ")
  4.  
  5. # subprocess.call("adduser "+name_of_user,shell=True)
  6.  
  7. user_password=input("Your password: ")
  8. # subprocess.call(user_password,shell=True)
  9. # again_password=input("Type password again: ")
  10. # subprocess.call(again_password,shell=True)
  11.  
  12. # emptySpace=""
  13. #
  14. # for i in range(0,7):
  15. # subprocess.call(emptySpace, shell=True)
  16.  
  17. os.system("sudo useradd -m -p "+user_password+" "+name_of_user)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement