Skip to content

Instantly share code, notes, and snippets.

@wangyingang
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wangyingang/10947727 to your computer and use it in GitHub Desktop.
Save wangyingang/10947727 to your computer and use it in GitHub Desktop.
Force the user to change their password at first login

#Force the user to change their password at first login 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment