If you are creating new user in your machine, and you would like them to change password the first time they login, using command
chage is the way. Let's say our user is foo.
# chage -d 0 foo
where -d is for lastday. When we set it to 0, it will ask for password change the first time foo logs in.
That's all folks :)
No comments:
Post a Comment