How do I create a user in Linux using Python? I mean, I know about the subprocess module and thought about calling \'adduser\' and passing all the parameters at once, but th
def createUser(name,username,password): encPass = crypt.crypt(password,"22") return os.system("useradd -p "+encPass+ " -s "+ "/bin/bash "+ "-d "+ "/home/" + username+ " -m "+ " -c \""+ name+"\" " + username)