ÆÄÀÏ º¸È£ ¸ðµå ¼öÁ¤Çϱ⼳ġÇÏ´Â µµÁß¿¡ ¾î¶² ÇÁ·Î±×·¥µéÀº CD·ÎºÎÅÍ Á÷Á¢ ½ÇÇàµÈ´Ù. ºÒÇàÇϰԵµ FTP
ÇÁ·Î±×·¥Àº º¹»çµÇ´Â ÆÄÀϰú µð·ºÅ丮ÀÇ º¸È£ ¸ðµå¸¦ ¾ðÁ¦³ª º¸Á¸ÇÏÁö´Â ¾Ê´Â´Ù.
µû¶ó¼ µð·ºÅ丮¸¦ CD¿¡ ±Á±â Àü¿¡ ÇÁ·Î±×·¥, ½© ½ºÅ©¸³Æ®, °øÀ¯ ¶óÀ̺귯¸®¿¡
½ÇÇà ÆÛ¹Ì¼ÇÀÌ ÁÖ¾îÁ® ÀÖ´ÂÁö¸¦ È®ÀÎÇÏ´Â °ÍÀÌ ÇÊ¿äÇÏ´Ù. ±×·¸°Ô ÇÏ·Á¸é
¾Æ·¡ÀÇ updatePerm ½ºÅ©¸³Æ®¸¦ ¹èÆ÷ÆÇÀÇ ·ÎÄà º¹»çº»¿¡ ½ÇÇà½ÃŰ¸é µÈ´Ù.#!/bin/bash
RHVERSION=6.0
LIST=/tmp/er3hd3w25
CDDIR=/jaz/redhat-${RHVERSION}
# Find all directories, and make sure they have +x permission
find $CDDIR -type d -exec chmod -c 755 {} \;
# Find all files that are executables, shell or perl scripts
find $CDDIR -type f | file -f - | grep -v RPM \
| egrep -i 'executable|perl|bourne|shell' | cut -f1 -d: > $LIST
# Find shared libraries
find $CDDIR -name \*.so >> $LIST
# Make them executable
while read file
do
if [ ! -x $file ] ; then
chmod -c 755 $file
fi
done < $LIST
/bin/rm $LIST
exit 0