Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I add a new user to my system I set a password and tell it to the new user. If the user doesn't like it, he/she can change it. However in my opinion it is better to force the user to change his/her password at the first login. Is there a way I can do that in Ubuntu?

share|improve this question
add comment

1 Answer

up vote 22 down vote accepted

You can just expire that password. After creating a new user foo, just type:

sudo chage -d 0 foo

And he will be forced to change it after first logon.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.