B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-27 Friday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 94 article 2002-02-03 02:27:45
NickName   Ç®ºñ´©
Subject   find ¸í·ÉÀ¸·Î ¹éµµ¾î ã±â
±Û¾´ÀÌ: À̸íÈÆ
¿ì¸®³ª¶ó ¸®´ª½º ¼­¹ö¸¦ º¸¸é 
Å©·¡Å·(ÇØÅ·)¿¡ ¿ÏÀüÈ÷ ¹«¹æºñ »óÅÂÀÔ´Ï´Ù. 
ÁÖ- ¿ì¸® ¸ðµÎ ÇØÅ·À̶ó°í ÇÏÁö¸»°í Å©·¡Å·À̶ó°í ºÒ·¶À¸¸é ÁÁ°Ú½¿´Ù. 

±×·¡¼­ Á¶±ÝÀ̳ª¸¶ µµ¿òÀÌ µÇ°íÀÚ ¹éµµ¾î ã´Â ¹æ¹ýÀ» ¾Ë·ÁÁÙ·Á°í ÇÕ´Ï 
´Ù. ¹°·Ð À̰͸¸À¸·Î ÇØ°áµÉ¼ö ¾øÁÒ 

¸ÇóÀ½ Å©·¡Ä¿ÀÇ Ä§ÀÔÀÌ ÀǽɵǸé 
setuid¿Í setgid¸¦ Á¡°ËÇØ¾ß ÇÕ´Ï´Ù. 
±×·¯±â À§ÇÑ °Ë»ö ¸í·É¾î find !!! 

¿¹) 
# find / -type f -perm +6000 -ls 

¼³¸í 
f: ÀϹÝÀûÀÎ È­Àϵé, 
+6000: Æ۹̼ÇÀÌ 6000ÀÎ ¸ðµç°Í (any of the permission bits) 
-ls : »ó¼¼ Ãâ·Â `ls -l`°ú °°À½ 

¼ö»óÇÑ È­ÀÏÀÌ º¸ÀÌ¸é »èÁ¦Çϰųª 
#chmod -s ¼ö»óÇÑÈ­ÀÏ 
-s: setuid,setuid ÇØÁ¦ 


¶ÇÇÑ ½Ã½ºÅÛ°ü¸®»ó ½Ç¼ö·Î ¾²±â¸ðµå·Î º¯°æµÈ ÆÄÀϵµ ÀÖ½À´Ï´Ù. 
ÀÌ°É ?´Â ¹æ¹ý,´Ü ¸µÅ©È­ÀÏÀº ¾Èã¾Æµµ µÇ°ÚÁÒ,Á¤±ÔÇ¥Çö½ÄÀ» ¾²ÀÚ .. 
#find / -perm -2 ! -type l -ls 

¼³¸í -2 : Æ۹̼ÇÀÌ 2ÀÌ»ó ¸ðµç °ÍÀ» ÁöĪÇØ¿ä (all of the permission 
bits) 
½Éº¼¸µ¸µÅ©ÆÄÀÏÀÌ ¾Æ´Ñ ¸ðµç µ¥ÀÌÅÍÈ­ÀÏÀ» ã´Â °Í 
ÁÖ·Î /dev¿Í /tmp¿¡ ¸¹¾Æ¿ä.. 

Âü°í·Î ¼ÒÀ¯ÀÚ³ª ±×·ìÀÌ ¾ø´Â ÆÄÀÏÀ» ã´Â ¹æ¹ýÀ» ¾Ë·Áµå¸®°Ú½À´Ï´Ù. ÀÌ 
°Ç Å©·¡Ä¿°¡ °íÀÇÀûÀ¸·Î ¸¸µç°æ¿ì°¡ ¸¹½À´Ï´Ù. 
ã´Â ¹æ¹ý 
find / -nouser -o -nogroup 
-o(Á¤±ÔÇ¥Çö½Ä or¸¦ ¶æÇØ¿ä)
Regist Addr [ 192.168.0.2 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®