Advertisement
Guest User

Untitled

a guest
Nov 29th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import commands, os, string
  2. import sys
  3. import fileinput
  4. import subprocess
  5.  
  6.  
  7. user = raw_input("Enter the Username to be created: " )
  8. password = raw_input( "Enter the password for the user: " )
  9. SRnumber = raw_input( "Enter the Service Request Number: ")
  10. useremail = raw_input( "Enter the email address of the new user: ")
  11.  
  12. user = user + " "
  13.  
  14. os.system('useradd' + user)
  15. os.system('passwd ' + user + password)
  16.  
  17. os.system('echo "Your new accound id is"' + user | mailx -s '"Your account has been created"' + useremail )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement