I used the 'useradd' command to create a new account, but I did so without specifying the password. Now, when the user tries to log in, it asks him for a password. If I didn't set it up initially, how do I set the password now?
Easiest way to do this from the command line is to use the
After you set the user password, you can force the user to change it on next login using the
When the user successfully authenticates with the password you set, the user will automatically be prompted to change it. After a successful password change, the user will be disconnected, forcing re-authentication with the new password.
It's fairly simple. From the command line issue either
and you'll be prompted to change the users password. You may also su to the user in question and then run 'passwd'
Useradd doesn't ask for password. adduser does.