I know that when creating a new user by useradd, I could set his password by -p option, but it seems insecure, then what the right way to create a user and set his password?
I do this in two steps:
1. create the user using useradd command without the -p option
2. set the user's password using passwd command
is this two steps suitable?