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/
References:
- [linux-users:50009] Re: RHLのmirror のCDR化Tomohiko Yoshida
- [linux-users:50003] RHLのmirrorのCDR化iNOUE Koich!
- [linux-users:50011] Re: RHLのmirror のCDR化iNOUE Koich!
- Prev by Subject: [linux-users:50049] Re: Mule+Xで日本語フォントが使えない
- Next by Subject: [linux-users:50051] Re: XEmacsのカーソル移動
- Previous by thread: [linux-users:50013] Re: RHLのmirror のCDR化
- Next by thread: [linux-users:50005] Re: pppdで二重ログインの禁止
- Indexes:[Main][Thread]