hi,
i am trying to write a script to add 100 users and with certain things created. however, all the book and tutorials online recommend and only show the way to use passwd user after creating a user by useradd username.
i know there is a -p option for the password
and i tried:
useradd name -p password -c "comment" -g 600
this user was created, everything else is fine except for the password. i couldn't log in this user with the password i set with the -p . does anybody know how i should useradd and set the password? thank you