Difference between revisions of "Restricting user from changing password"

From Notes_Wiki
m
m
Line 9: Line 9:


After this change user password once and the newly set password would be locked for given number of days.
After this change user password once and the newly set password would be locked for given number of days.
<yambe:breadcrumb>Server_administration_tips_and_tricks|Server administration tips and tricks</yambe:breadcrumb>

Revision as of 07:30, 27 August 2018

<yambe:breadcrumb>Server_administration_tips_and_tricks|Server administration tips and tricks</yambe:breadcrumb>

Restricting user from changing password

Sometimes on shared lab machines it may be desired to prevent users from changing passwords. To do so use:

chage -m 1000 <username>

This would prevent user from changing his/her password for next 1000 days.

After this change user password once and the newly set password would be locked for given number of days.




<yambe:breadcrumb>Server_administration_tips_and_tricks|Server administration tips and tricks</yambe:breadcrumb>