[root@CHONNOM home]# useradd kyunghyun
[root@CHONNOM home]# passwd kyunghyun
kyunghyun »ç¿ëÀÚÀÇ ºñ¹Ð ¹øÈ£ º¯°æ Áß
»õ ¾ÏÈ£:
»õ ¾ÏÈ£ ÀçÀÔ·Â:
passwd: ¸ðµç ÀÎÁõ ÅäÅ«ÀÌ ¼º°øÀûÀ¸·Î ¾÷µ¥ÀÌÆ® µÇ¾ú½À´Ï´Ù.
[root@CHONNOM home]# cat /etc/shadow |grep kyunghyun
kyunghyun:$6$54X6npmK$1aJ8xPFdD8D/mzwFXPkeoUgRCRYzb9wy0xJekjxyPfhSjkw77H30hV5ddMVlx1uRHd.seDYJ9mxTkmdEaGlmz.:16527:0:99999:7:::
¡Ø /etc/shadow ¼³¸í
¼³Á¤±¸ºÐÀÚ - ÄÝ·Ð :
°èÁ¤ : Æнº¿öµå ¾ÏȣȰª : ¸¶Áö¸· Æнº¿öµå¼öÁ¤ÀÏÀÚ : Æнº¿öµå º¯°æµÇ±âÀü ÃÖ¼Ò»ç¿ë±â°£ : Æнº¿öµå º¯°æÀü ÃÖ´ë»ç¿ë±â°£ : Æнº¿öµå »ç¿ë ¸¸±âÀÏ Àü¿¡ °æ°í ¸Þ½ÃÁö Á¦°øÀϼö : ·Î±×ÀÎ Á¢¼ÓÂ÷´ÜÀÏ : ·Î±×ÀÎ »ç¿ëÀ» ±ÝÁöÀÏ : »ç¿ëµÇÁö ¾ÊÀ½
3¹ø° ±¸ºÐÀÚ(¸¶Áö¸· Æнº¿öµå ¼öÁ¤ÀÏÀÚ)¸¦ 0À»·Î º¯°æ
[root@CHONNOM home]# chage -d 0 kyunghyun
[root@CHONNOM home]# cat /etc/shadow |grep kyunghyun
kyunghyun:$6$54X6npmK$1aJ8xPFdD8D/mzwFXPkeoUgRCRYzb9wy0xJekjxyPfhSjkw77H30hV5ddMVlx1uRHd.seDYJ9mxTkmdEaGlmz.:0:0:99999:7:::
[root@CHONNOM ~]# chage --help
Usage: chage [options] [LOGIN]
Options:
-d, --lastday LAST_DAY set date of last password change to LAST_DAY
-E, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-h, --help display this help message and exit
-I, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-l, --list show account aging information
-m, --mindays MIN_DAYS set minimum number of days before password
change to MIN_DAYS
-M, --maxdays MAX_DAYS set maximim number of days before password
change to MAX_DAYS
-W, --warndays WARN_DAYS set expiration warning days to WARN_DAYS
¿ø°ÝÁ¢¼Ó
smileserv@CHONNOM_OFFICE:~$ ssh -lkyunghyun 115.XXX.XXX.193
kyunghyun@115.XXX.XXX.193's password:
You are required to change your password immediately (root enforced)
Last login: Thu Apr 2 14:50:05 2015 from 211.XXX.XXX.6
WARNING: Your password has expired.
You must change your password now and login again!
kyunghyun »ç¿ëÀÚÀÇ ºñ¹Ð ¹øÈ£ º¯°æ Áß
kyunghyun¿¡ ´ëÇÑ ¾ÏÈ£ º¯°æ Áß
(ÇöÀç) UNIX ¾ÏÈ£:
»õ ¾ÏÈ£:
»õ ¾ÏÈ£ ÀçÀÔ·Â:
passwd: ¸ðµç ÀÎÁõ ÅäÅ«ÀÌ ¼º°øÀûÀ¸·Î ¾÷µ¥ÀÌÆ® µÇ¾ú½À´Ï´Ù.
Connection to 115.XXX.XXX.193 closed.
==>>
DigitalOcean : ·£´ýÀ¸·Î Æнº¿öµå À̸ÞÀÏ ¹ß¼ÛÈÄ Ã¹Á¢¼ÓÀÌÈÄ Æнº¿öµå º¯°æ
linode : VM »ý¼º½Ã ¿øÇÏ´Â Æнº¿öµå ÀԷ°ªÀ¸·Î ¼³Á¤