Difference between revisions of "Restricting user from changing password"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>Server_administration_tips_and_tricks|Server administration tips and tricks</yambe:breadcrumb> =Restricting user from changing password= Sometimes on shared...") |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|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: | Sometimes on shared lab machines it may be desired to prevent users from changing passwords. To do so use: | ||
Line 7: | Line 6: | ||
</pre> | </pre> | ||
This would prevent user from changing his/her password for next 1000 days. | 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. | |||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Server administration tips and tricks]] > [[Restricting user from changing password]] |
Latest revision as of 15:55, 22 July 2022
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