Lets say i have a file called users.txt with the following user info:
user1:6001:grp1:This is user1:/home/user1:/bin/bash
user2:6002:grp2:This is user2:/home/user2:/bin/dash
user3:6003:grp3:This is user3:/home/user3:/bin/fish
I want a bash script that can add all these users automatically. With the correct username, UID, group, name, home folder and shell..
Any advice how to do this? i am stuck..