×ðÁú¿­Ê±¹ÙÍøµÇ¼

Éî¶ÈÆÊÎöLinux chageÏÂÁîµÄ¹¦Ð§ÓëÊÂÇéÔ­Àí

LinuxϵͳÖеÄchageÏÂÁîÊÇÓÃÀ´ÐÞ¸ÄÓû§Õ˺ŵÄÃÜÂëʧЧÈÕÆÚµÄÏÂÁî £¬Ò²¿ÉÒÔÓÃÀ´ÐÞ¸ÄÕ˺ŵÄ×ºÍ×î¶Ì¿ÉÓÃÈÕÆڵȡ£¸ÃÏÂÁîÔÚÖÎÀíÓû§Õ˺ÅÇå¾²ÉÏÆ𵽺ÜÊÇÖ÷ÒªµÄ×÷Óà £¬¿ÉÒÔÓÐÓõؿØÖÆÓû§ÃÜÂëµÄʹÓÃÏÞÆÚ £¬ÔöǿϵͳµÄÇå¾²ÐÔ¡£

chageÏÂÁîµÄʹÓÃÒªÁ죺

chageÏÂÁîµÄ»ù±¾Ó﷨Ϊ£º

chage [Ñ¡Ïî] Óû§Ãû

µÇ¼ºó¸´ÖÆ

ÀýÈç £¬ÒªÐÞ¸ÄÓû§¡°testuser¡±µÄÃÜÂëʧЧÈÕÆÚ £¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ

chage -l testuser

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

chageÏÂÁîµÄÑ¡Ï

-E DATE£ºÉèÖÃÃÜÂëµÄʧЧÈÕÆÚ¡£

-M DAYS£ºÉèÖÃÃÜÂëµÄ×ʹÓÃÌìÊý¡£

-m DAYS£ºÉèÖÃÃÜÂëµÄ×î¶ÌʹÓÃÌìÊý¡£

-I DAYS£ºÃÜÂëʧЧǰµÄÖÒÑÔÌìÊý¡£

-W DAYS£ºÃÜÂëÓâÆÚºóÕ˺ű»Ëø¶¨Ç°µÄÖÒÑÔÌìÊý¡£

chageÏÂÁîµÄÔ­Àí£º

chageÏÂÁîÏÖʵÉÏÊÇͨ¹ýÐÞ¸ÄÓû§Õ˺ŵÄ/etc/shadowÎļþÀ´ÊµÏֵġ£ÔÚLinuxϵͳÖÐ £¬Óû§µÄÃÜÂëÊÇÒÔ¼ÓÃÜÐÎʽ´æ´¢ÔÚ/etc/shadowÎļþÖÐµÄ £¬¶øchageÏÂÁîÔò¸ü¸ÄÁË/etc/shadowÎļþÖÐÏà¹Ø×ֶεÄÊýÖµ £¬´Ó¶øʵÏÖ¶ÔÃÜÂëʧЧÈÕÆÚµÈÊôÐÔµÄÐ޸ġ£

ÏÂÃæͨ¹ýÒ»¸öÏêϸʾÀýÀ´ËµÃ÷chageÏÂÁîµÄʹÓü°Ô­Àí£º

¼ÙÉèÒªÐÞ¸ÄÓû§¡°testuser¡±µÄÃÜÂëʧЧÈÕÆÚΪ2022Äê12ÔÂ31ÈÕ £¬×ʹÓÃÌìÊýΪ90Ìì £¬×î¶ÌʹÓÃÌìÊýΪ7Ìì £¬ÃÜÂëʧЧǰµÄÖÒÑÔÌìÊýΪ14Ìì £¬ÃÜÂëÓâÆÚºóÕ˺ű»Ëø¶¨Ç°µÄÖÒÑÔÌìÊýΪ7Ìì £¬¿ÉÒÔƾ֤ÒÔÏ°취²Ù×÷£º

Éó²é¡°testuser¡±µÄÄ¿½ñÕ˺ÅÐÅÏ¢£º

chage -l testuser

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

ÐÞ¸ÄÕ˺ŵÄÏà¹ØÊôÐÔ£º

chage -E 2022-12-31 -M 90 -m 7 -I 14 -W 7 testuser

µÇ¼ºó¸´ÖÆ

ÔÙ´ÎÉó²é¡°testuser¡±µÄÕ˺ÅÐÅϢȷÈÏÐÞ¸ÄÉúЧ£º

chage -l testuser

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

ͨ¹ýÒÔÉϲÙ×÷ £¬¾Í¿ÉÒÔÀÖ³ÉÐÞ¸ÄÓû§¡°testuser¡±µÄÃÜÂëʧЧÈÕÆÚÒÔ¼°ÆäËûÏà¹ØÊôÐÔ¡£

×ܵÄÀ´Ëµ £¬chageÏÂÁîÊÇÒ»¸öºÜÊÇÊÊÓõÄÏÂÁî £¬¿ÉÒÔ×ÊÖúÖÎÀíÔ±ÎÞаÖÎÀíÓû§Õ˺ŵÄÇå¾²ÐÔ £¬Í¨¹ý¿ØÖÆÃÜÂëµÄʧЧÈÕÆÚµÈÊôÐÔ £¬ÔöǿϵͳµÄÇå¾²ÐÔ¡£

ÒÔÉϾÍÊÇÉî¶ÈÆÊÎöLinux chageÏÂÁîµÄ¹¦Ð§ÓëÊÂÇéÔ­ÀíµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ