Hi all.

I'm trying to install a yabb forum on my web space but I'm having problems setting chmod permissions for each of the folders - there are dozens of files and folders that need setting. I'm suprised that a script isn't included to do this automatically. Anyway, can anyone suggest a script which could read the lists below and in turn issue the correct chmod command.

Thanks.

------- NON cgi-bin section --------- * drwxrwxrwx (chmod 777)public_html/yabbfiles * -rw-rw-rw- (chmod 666)(in ASCII)public_html/yabbfiles/*.js * drwxrwxrwx (chmod 777)public_html/yabbfiles/Attachments * drwxrwxrwx (chmod 777)public_html/yabbfiles/avatars * -rw-rw-rw- (chmod 666)(in Binary)public_html/yabbfiles/avatars/* + (all files) * drwxrwxrwx (chmod 777)public_html/yabbfiles/Buttons * -rw-rw-rw- (chmod 666)(in Binary)public_html/yabbfiles/Buttons/E +nglish/* (all files) * drwxrwxrwx (chmod 777)public_html/yabbfiles/ModImages * drwxrwxrwx (chmod 777)public_html/yabbfiles/Smilies * -rw-rw-rw- (chmod 666)(in Binary)public_html/yabbfiles/Smilies/* + (all files) * drwxrwxrwx (chmod 777)public_html/yabbfiles/Templates/Admin * -rw-rw-rw- (chmod 666)(in Binary)public_html/yabbfiles/Templates +/Admin/default/* (all files) * -rw-rw-rw- (chmod 666)(in ASCII)public_html/yabbfiles/Templates/ +Admin/default.css * drwxrwxrwx (chmod 777)public_html/yabbfiles/Templates/Forum * -rw-rw-rw- (chmod 666)(in Binary)public_html/yabbfiles/Templates +/Forum/default/* (all files) * -rw-rw-rw- (chmod 666)(in ASCII)public_html/yabbfiles/Templates/ +Forum/default.css ------- CGI-BIN section (all files in ASCII) --------- * -rwxr-xr-x (chmod 755)cgi-bin/yabb2 * -rwxr-xr-x (chmod 755)cgi-bin/yabb2/AdminIndex.pl * -rwxr-xr-x (chmod 755)cgi-bin/yabb2/FixFile.pl * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Paths.pl * -rwxr-xr-x (chmod 755)cgi-bin/yabb2/Setup.pl * -rwxr-xr-x (chmod 755)cgi-bin/yabb2/YaBB.pl * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Admin * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Admin/* (all files) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Boards * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Boards/* (all files) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Convert * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Convert/Boards * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Convert/Members * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Convert/Messages * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Convert/Variables * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Help/English/Admin * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Help/English/Admin/* (all fi +les) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Help/English/Gmod * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Help/English/Gmod/* (all fil +es) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Help/English/Moderator * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Help/English/Moderator/* (al +l files) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Help/English/User * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Help/English/User/* (all fil +es) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Languages/English * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Languages/English/agreement. +txt * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Languages/English/censor.txt * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Languages/English/* (remaini +ng files) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Members * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Members/* (all files) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Messages * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Messages/* (all files) * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Digest * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Digest/HMAC_MD5.pm * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Digest/MD5.pm * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Time * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Time/HiRes.pm * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Upload * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Upload/CGI.pm * drwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Upload/CGI * -rwxrwxrwx (chmod 777)cgi-bin/yabb2/Modules/Upload/CGI/Util.pm * drwxrwxrwx (chmod 766 or 777)cgi-bin/yabb2/Sources * -rwxr-xr-x (chmod 755)cgi-bin/yabb2/Sources/* (all files) * drwxrwxrwx (chmod 766 or 777)cgi-bin/yabb2/Templates * drwxrwxrwx (chmod 766 or 777)cgi-bin/yabb2/Templates/default * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Templates/default/* (all fil +es) * drwxrwxrwx (chmod 766 or 777)cgi-bin/yabb2/Variables * -rw-rw-rw- (chmod 666)cgi-bin/yabb2/Variables/* (all files)

READMORE tags added by Arunbear


In reply to 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.