I am in the process of creating 60 users locally in a linux machine. I wanted to do it automatically and so I found I can use the newusers command to add the users in batch. I have the users and password list a text file. Currently, I have the text file in the below format.
user1:password1 user2:password2 user3:password3
However, for the newusers command, I need to have the file in the following format.
I need to modify the text file to append the UID, group ID and the user home path and the user shell. Is there an easier way than this?