Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess, os
- name_of_user=input("Input name of user: ")
- # subprocess.call("adduser "+name_of_user,shell=True)
- user_password=input("Your password: ")
- # subprocess.call(user_password,shell=True)
- # again_password=input("Type password again: ")
- # subprocess.call(again_password,shell=True)
- # emptySpace=""
- #
- # for i in range(0,7):
- # subprocess.call(emptySpace, shell=True)
- os.system("sudo useradd -m -p "+user_password+" "+name_of_user)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement