Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Username:"
- read username
- echo "Password:"
- read password
- useradd $username --password $password
- chown $username /tmp
- if [ $? ] then
- echo "error"
- else
- echo $username > /tmp/data.txt
- echo $password >> /tmp/data.txt
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement