In your script, insert something like -
system ("chmod 755 cgi-bin/yabb2"); system ("chmod 755 cgi-bin/yabb2/AdminIndex.pl"); system ("chmod 755 cgi-bin/yabb2/FixFile.pl"); system ("chmod 666 cgi-bin/yabb2/Paths.pl"); system ("chmod 755 cgi-bin/yabb2/Setup.pl"); system ("chmod 755 cgi-bin/yabb2/YaBB.pl"); system ("chmod 777 cgi-bin/yabb2/Admin"); system ("chmod 666 cgi-bin/yabb2/Admin/*"); system ("chmod 777 cgi-bin/yabb2/Boards"); system ("chmod 666 cgi-bin/yabb2/Boards/*"); system ("chmod 777 cgi-bin/yabb2/Convert"); system ("chmod 777 cgi-bin/yabb2/Convert/Boards"); system ("chmod 777 cgi-bin/yabb2/Convert/Members"); system ("chmod 777 cgi-bin/yabb2/Convert/Messages"); system ("chmod 777 cgi-bin/yabb2/Convert/Variables"); system ("chmod 777 cgi-bin/yabb2/Help/English/Admin"); system ("chmod 777 cgi-bin/yabb2/Help/English/Admin/*"); system ("chmod 777 cgi-bin/yabb2/Help/English/Gmod"); system ("chmod 777 cgi-bin/yabb2/Help/English/Gmod/*"); system ("chmod 777 cgi-bin/yabb2/Help/English/Moderator"); system ("chmod 777 cgi-bin/yabb2/Help/English/Moderator/*"); system ("chmod 777 cgi-bin/yabb2/Help/English/User"); system ("chmod 777 cgi-bin/yabb2/Help/English/User/*"); system ("chmod 777 cgi-bin/yabb2/Languages/English"); system ("chmod 666 cgi-bin/yabb2/Languages/English/agreement.txt"); system ("chmod 666 cgi-bin/yabb2/Languages/English/censor.txt"); system ("chmod 777 cgi-bin/yabb2/Languages/English/*"); system ("chmod 777 cgi-bin/yabb2/Members"); system ("chmod 666 cgi-bin/yabb2/Members/*"); system ("chmod 777 cgi-bin/yabb2/Messages"); system ("chmod 666 cgi-bin/yabb2/Messages/*"); system ("chmod 777 cgi-bin/yabb2/Modules/Digest"); system ("chmod 777 cgi-bin/yabb2/Modules/Digest/HMAC_MD5.pm"); system ("chmod 777 cgi-bin/yabb2/Modules/Digest/MD5.pm"); system ("chmod 777 cgi-bin/yabb2/Modules/Time"); system ("chmod 777 cgi-bin/yabb2/Modules/Time/HiRes.pm"); system ("chmod 777 cgi-bin/yabb2/Modules/Upload"); system ("chmod 777 cgi-bin/yabb2/Modules/Upload/CGI.pm"); system ("chmod 777 cgi-bin/yabb2/Modules/Upload/CGI"); system ("chmod 777 cgi-bin/yabb2/Modules/Upload/CGI/Util.pm"); system ("chmod 766 cgi-bin/yabb2/Sources"); system ("chmod 755 cgi-bin/yabb2/Sources/*"); system ("chmod 766 cgi-bin/yabb2/Templates"); system ("chmod 766 cgi-bin/yabb2/Templates/default"); system ("chmod 666 cgi-bin/yabb2/Templates/default/*"); system ("chmod 766 cgi-bin/yabb2/Variables"); system ("chmod 666 cgi-bin/yabb2/Variables/*");

In reply to Re^2: Issuing chmod commands using perl by localist
in thread Issuing chmod commands using perl by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.