Advertisement
Guest User

Untitled

a guest
Mar 30th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/bin/bash
  2. userfile=/home/ludovic/file.csv
  3. username=$(cat /home/ludovic/file.csv)
  4. password=$username@password123
  5.  
  6. for users in $username
  7. do
  8. useradd $users --create-home --groups groupe1,groupe2
  9. echo "$username:$password"
  10. done
  11. echo
  12. tail -n$(wc -l /home/ludovic/file.csv) /etc/passwd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement