Originally Posted by jastisreedevi
Thank u.I know the passwd command is used to change the user's password.But there is one option to change the password by using usermod command also.I didn't know the exact purpose for it.I am unclear about it.
I think you might confuse it with options that apply to a user's password, but not changing the password.
You can do several things with usermod - lock or unlock a user's password, make the user inactive after a period of time etc. There's also the -p option, which is to use an unencrypted pasword - as far as I heard - and which is obviously not a good idea.