Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import commands, os, string
- import sys
- import fileinput
- import subprocess
- user = raw_input("Enter the Username to be created: " )
- password = raw_input( "Enter the password for the user: " )
- SRnumber = raw_input( "Enter the Service Request Number: ")
- useremail = raw_input( "Enter the email address of the new user: ")
- user = user + " "
- os.system('useradd' + user)
- os.system('passwd ' + user + password)
- 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