[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

[linux-users:50050] Re: RHLのmirrorのCDR化


iNOUE Koich! さんが 99.3.29ごろに
「[linux-users:50011] Re: RHLのmirrorのCDR化」の件で:
> なるほど。そのような良いものがあったのですね。勉強になりました。
> #実は思いあまってchmod -R 0777 *などとしました。
>
> > http://www.redhat.com/docs/LDP/HOWTO/RedHat-CD-8.html
> > というドキュメントもあるようです。
>
> http://www.redhat.com/docs/LDP/HOWTO/mini/RedHat-CD.html
> になっていました。
教えていただいたページに、ls-lRファイルを要さないスクリプトがありました。

------------------------------------------------------------------------
#!/bin/bash

RHVERSION=5.1

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
------------------------------------------------------------------------
--
井上
http://www.ns.musashi-tech.ac.jp/~inoue/Signature/

この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: