Restricting user from changing password

From Notes_Wiki
Revision as of 15:55, 22 July 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 6.x > Server administration tips and tricks > 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.



Home > CentOS > CentOS 6.x > Server administration tips and tricks > Restricting user from changing password