passwd (»ç¿ëÀÚ¿¡°Ô ºñ¹Ð¹øÈ£ ºÎ¿©Çϱâ)
[root@www skel]# passwd acc
Changing password for user acc
New password:
BAD PASSWORD: it is too short
Retype new password:
passwd: all authentication tokens updated successfully
[root@www skel]#
¾Æ±î ¸¸µé¾îÁØ acc »ç¿ëÀÚ¿¡°Ô ºñ¹Ð¹øÈ£¸¦ ¸¸µé¾î ÁÖ¾ú´Ù.
passwd¸¦ '1111' ·Î ÁÖ¾ú´õ´Ï ³ª»Û ¹øÈ£¶ó°í ¾Ë·ÁÁØ´Ù.
ºñ¹Ð¹øÈ£¸¦ ¸¸µé ¶§´Â 6±ÛÀÚ ÀÌ»ó »ç¿ëÇÏ´Â °ÍÀÌ ÁÁÀ¸¸ç
´Ü¾î³ª , ÀüȹøÈ£ , ÁֹιøÈ£ ,µîÀº »ç¿ëÇÏÁö ¾Ê´Â °ÍÀÌ ÁÁ´Ù.
¶ÇÇÑ ¼ýÀڷθ¸ ÀÌ·ç¾îÁø ºñ¹Ð¹øÈ£µµ ÁÁÀº Æнº¿öµå°¡ ¾Æ´Ï´Ù.
¹Ýµå½Ã ¹®ÀÚ, ¼ýÀÚ , ±âÈ£ µîÀ» ÇÔ²² »ç¿ëÇÏ´Â °ÍÀº ±ÇÀåÇÑ´Ù.
ºñ¹Ð¹øÈ£¸¦ ¹Ù²Ù´Â ¸í·É¾îµµ ¿ª½Ã À§¿Í °°´Ù.
passwd »ç¿ëÀÚID
¸í·É ºñ¹øÀ» ¹Ù²Ù¾îÁÙ »ç¿ëÀÚ
¹Ýµå½Ã ÀÌ·¸°Ô ÇÏ¿©¾ß ÇÑ´Ù.
µÚ¿¡ »ç¿ëÀÚ ¸íÀ» ÀûÁö ¾ÊÀ¸¸é root ºñ¹øÀ» ¹Ù²Ù°Ô µÇ´Â °ÍÀ»
¸í½ÉÇÏ±æ ¹Ù¶ø´Ï´Ù.
passwd : ¿É¼Ç
----------------------------------------------------------
| ¿É¼Ç | ³»¿ë |
----------------------------------------------------------
| -l | °èÁ¤ »ç¿ëÀ» ¸·À½ Lock |
----------------------------------------------------------
| -u | °èÁ¤ Ç®¾îÁÜ (Unlock) |
----------------------------------------------------------
| -S | °èÁ¤¿¡ ´ëÇÏ¿© ÀÚ¼¼È÷ º¸¿©ÁÖ´Â °ÍÀ» Çã¿ë |
----------------------------------------------------------
| -d | °èÁ¤¿¡ ´ëÇÑ ¾ÏÈ£¸¦ »ç¿ëÇÏÁö ¸øÇÏ°Ô ÇÔ |
----------------------------------------------------------
[root@prn root]# passwd -l acc
Locking password for user acc.
passwd: Success
[root@prn root]#
Locking password for user acc.
ÀÌ·¸°Ô Æнº¿öµå¿¡ Å°¸¦ °Å´Â°ÍÀ» ¾Ë¼ö ÀÖ½À´Ï´Ù.
½ÇÁúÀûÀ¸·Î ·Î±×ÀÎÀÌ ¾ÈµË´Ï´Ù.
[root@prn root]# passwd -u acc
Unlocking password for user acc.
passwd: Success.
[root@prn root]#
Unlocking password for user acc
Æнº¿öµåÅ°¸¦ °É¾î³õÀº°ÍÀ» Ç®¾îÁÖ´Â °ÍÀÔ´Ï´Ù.
·Î±×ÀÎ Çغ¸½Ã±æ ¹Ù¶ø´Ï´Ù.
[root@prn root]# passwd -S acc
Password set, MD5 crypt.
[root@prn root]#
Password set, MD5 crypt.
°èÁ¤¿¡ ´ëÇÏ¿© ÀÚ¼¼ÇÏ°Ô º¸¿©ÁÖ´Â °ÍÀ» Çã¿ë
Æнº¿öµå¿¡ ´ëÇÑ°ÍÀº º¸¿©ÁÖÁö ¾È½À´Ï´Ù.
[root@prn root]# passwd -d acc
Removing password for user acc.
passwd: Success
[root@prn root]#
Removing password for user acc.
Æнº¿öµå¸¦ »õ·Î ¸¸µé¶ó°í ÇÕ´Ï´Ù.
Á¤»óÀûÀÎ Æнº¿öµåÀ϶§ /etc/shadow ÆÄÀϳ»¿ë
plus:$1$2jMlpCI5$.xvuZw8lELnBoAdN4.w691:11962:0:99999:7:::
passwd -d acc ¸í·ÉÀ» ÇÏ°í »ìÆ캻 /etc/shadow ÆÄÀÏ
acc::11959:0:99999:7:::
Çѹø¾¿ ½ÇÇàÇغ¸½Ã±æ ¹Ù¶ø´Ï´Ù.
À̹ø¸í·É¾î´Â ¾Æ·¡ useradd ¿Í ¸®´ª½º¿¡¼¿¡¼´Â ±²ÀåÈ÷
ÇÊ¿äÇÑ ¸í·É¾î À̱⿡ ±æ°Ô ¼³¸íÀ» ÇÏ¿´½À´Ï´Ù.
¿©·¯ºÐµéÀÌ ´õ¿í ¾Ë±â ½±°Ô ¼³¸íÇϵµ·Ï ³ë·ÂÇÏ¿´´Âµ¥
¾î¶²°¡¿ä ...! ¼Ò°¨Á» ....
|