System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

asking wantedly to change tha passwd of the user at the first login

gany59
Regular Advisor

asking wantedly to change tha passwd of the user at the first login

how to set like the user login for the first time and issue the passwd and in the next step it will ask to change the passwd.
6 REPLIES
merieux
Frequent Advisor

Re: asking wantedly to change tha passwd of the user at the first login

Hi ,

passwd -f Force user to change password upon next login by expiring the current password.

regards ,
Bijeesh
Respected Contributor

Re: asking wantedly to change tha passwd of the user at the first login

hi
#passwd -f

This will tell the user on next login like,

Your password has expired. Choose a new one
Changing password for
Old password:
New password:


Bijeesh
Johnson Punniyalingam
Honored Contributor

Re: asking wantedly to change tha passwd of the user at the first login

man passwd

example :-

# passwd

Once password has been changed.

# passwd -f

-f = force the user to change password next login
Problems are common to all, but attitude makes the difference
Julián Aimar
Frequent Advisor

Re: asking wantedly to change tha passwd of the user at the first login

Hi,

# passwd -f


man passwd

-f Force user to change password upon next login by
expiring the current password.


Saludos

JEA
gany59
Regular Advisor

Re: asking wantedly to change tha passwd of the user at the first login

thanks folks,

Actually i need to know how to set it.
For example say the user ramkra and kuppsin and chingl are the new user, so as a admin we need to create the account for those. so after giving some passwd to those users, if they login for the first time with their user id and passwd , the system will ask the user to change the passwd ..

how to set this?
Patrick Wallek
Honored Contributor

Re: asking wantedly to change tha passwd of the user at the first login

Go back and read the responses.

Once the user has been created, you use the 'passwd -f ' to force them to reset their password after the first login.