µÎ°³ Áß ÇϳªÀΠƯÁ¤À¯Àú³×ÀÓ(da)·Î µé¾î¿Â °ÍÀÎÁö ¾Æ´ÑÁö ÆľÇÇÒ ¼ö ÀÖ½À´Ï±î? ¶Õ¸° °Í °°¾Æ¿ä..
Jun 1 15:53:50 tmp sshd(pam_unix)[16781]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=209.152.167.147 user=da
Jun 1 15:53:56 tmp sshd(pam_unix)[16783]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=209.152.167.147 user=da
Jun 1 15:53:59 tmp sshd(pam_unix)[16785]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=209.152.167.147 user=da
Jun 1 15:55:01 tmp crond(pam_unix)[16789]: session opened for user root by (uid=0)
Jun 1 15:55:01 tmp crond(pam_unix)[16789]: session closed for user root
Jun 1 16:00:01 tmp crond(pam_unix)[16793]: session opened for user root by (uid=0)
Jun 1 16:00:01 tmp crond(pam_unix)[16795]: session opened for user root by (uid=0)
Jun 1 16:00:02 tmp crond(pam_unix)[16795]: session closed for user root
Jun 1 16:00:02 tmp crond(pam_unix)[16793]: session closed for user root
da ÀÇ À¯Àú³×ÀÓÀº ¾ÆÁ÷µµ ·Î±×ÀÎÀ¸·Î µÇ¾îÀÖ½À´Ï´Ù. #userdel da ¸¦ ¾²¸é ¾ÆÁ÷ ·Î±×¿Â ÁßÀ̶ó´Â ÇÕ´Ï´Ù. ÀÌ »ç¿ëÀÚ¸¦ ¾î¶»°Ô Áö¿ï ¼ö ÀÖÁÒ? ±×¸®°í ƯÁ¤¾ÆÀÌÇǷθ¸ ·Î±×ÀÎ ÇÒ ¼ö ÀÖ°Ô ÇÏ´Â ¹æ¹ýÀ̳ª ¼³Á¤Àº ¾î¶² °ÍÀÌ ÀÖ½À´Ï±î? ¿ì¼± ÀÌ ¹æ¹ýµµ ÇغÁ¾ß°Ú½À´Ï´Ù.
[tto@tmp ~]$ ps -eo pid,user,cmd,args | grep da
17304 tto grep da grep da
[tto@tmp ~]$ ps -eo pid,user,cmd,args | grep tto
3746 tto /usr/bin/ssh-age /usr/bin/ssh-agent -s
5368 tto /usr/bin/ssh-age /usr/bin/ssh-agent -s
5790 tto /usr/bin/ssh-age /usr/bin/ssh-agent -s
7945 tto /usr/bin/ssh-age /usr/bin/ssh-agent -s
17266 root sshd: tto [priv] sshd: tto [priv]
17273 tto sshd: tto@pts/1 sshd: tto@pts/1
17274 tto -bash -bash
17305 tto ps -eo pid,user, ps -eo pid,user,cmd,args
17306 tto grep tto grep tto
±×¸®°í ¾Æ¿ï·¯ À¯Àú da¸¦ Áö¿ì±â À§ÇØ ´ÙÀ½À» ½ÇÇàÇß½À´Ï´Ù. ±×¸®°í ±×Àü¿¡ chattr +i /etc/passwd¸¦ ÁöÁ¤ÇÏ°í su - ¸í·É¾îµµ tto¸¸ »ç¿ëÇÒ ¼ö ÀÖ°Ô ÁöÁ¤ÇØ ³õ¾Ò½À´Ï´Ù.
[root@tmp ~]# userdel da
userdel: unable to open password file
±×·±µ¥ ´ÙÀ½°ú °°Àº ¸Þ¼¼Áö°¡ ¶å´Ï´Ù. ÀÌ»óÇϳ׿ä. ´Ù½Ã ¸®·è½º ¼³Ä¡ÇÏ°í °¡µ¿ÇÑÁö 2Àϸ¸¿¡ ÀÌ·¸°Ô µÇ³×¿ä....ÂÁ
-i ¿É¼ÇÀ» Á༠¼³Á¤ÇØÁ¦ÇÏ°í Çصµ ¶È°°Àº ¸Þ¼¼Áö°¡ ¶å´Ï´Ù.
À§ÀÇ »óȲÀÌ Å©·¢Å·ÀÌ µÈ °Ç°¡¿ä? ¾Æ´Ï¸é ±×³É Æ÷±âÇÏ°í °¬´ÂÁö °æÇèÀÌ ¾øÀ̼ Á¤È®È÷ ¾Ë ¼ö°¡ ¾ø³×¿ä.
´Ù½Ã ºñ¹Ð¹øÈ£ ¹Ù²Ù°í ´Ù½Ã ¸®·è½º ÀνºÅçÇØ¾ß ÇÒÁö ±Ã±ÝÇÕ´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.