title: how to add user and give root permission with python script
body: <p>I want to add user on Ubuntu and give root permission with python script
  but I don't know how to give permission (root access).</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>import os
  import crypt
  
  username=raw_input("select username:")
  password=raw_input("select password:")
  mcrypt=crypt.crypt(password,"123")
  os.system("sudo useradd -m -p"+password+" "+username)
  </code></pre>