Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Username:"
  3. read username
  4. echo "Password:"
  5. read password
  6.  
  7. useradd $username --password $password
  8. chown $username /tmp
  9.  
  10. if [ $? ] then
  11. echo "error"
  12. else
  13. echo $username > /tmp/data.txt
  14. echo $password >> /tmp/data.txt
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement