I have created user using below command
useradd myuser
Then, I tried to do change password with following command
usermod --password mypwd myuser
(I know plain password is not a good way, but for time being I am doing this)
I have tried to login myuser with mypwd. But, it's not allowing to login (incorrect password).
I could use passwd myuser (working fine). There are some constraints, so I am doing with usermod.
Is anything I am missing in usermod ? or Is there any alternatives to do change password other than passwd username?