Re: bbs.html permissions
Would you tell me which version of moderated DoubleMessageBoard do you use?
Anyway...
If you use version 2, open bbs.cgi and go to line 146 where you find
if ($data{'tstp'}) {
&posc;
} else {
≺
}
}
You change it to
if ($data{'tstp'}) {
&posc;
} else {
≺
}
chmod 0744, $bfile or &error1("chmod error $bfile", $!);
}
Now, if you use version 1.x, open bbs.cgi and go to line 75 (version 1) or line 153 or 152 (version 1.31 or 1.4) where you see something like
open (DATAF, ">>$dfile") or &error2("LINE-153",$erro1,$erro3,$!);
print DATAF $newd;
close (DATAF);
unlink $tfile;
You add chmod as follow
open (DATAF, ">>$dfile") or &error2("LINE-153",$erro1,$erro3,$!);
print DATAF $newd;
close (DATAF);
chmod 0744, $dfile or &error2("chmod error $dfile", $!);
unlink $tfile;
and also go to line 244, 247 or 248 (version 1, 1.31 or 1.4 respectively) where you find something like
open(BBSF,">$bfile") or die "Check the permission of $bfile or its directory";
print BBSF (@line);
close BBSF;
}
Now you add another chmod as follow
open(BBSF,">$bfile") or die "Check the permission of $bfile or its directory";
print BBSF (@line);
close BBSF;
chmod 0744, $bfile or &error1("chmod error $bfile", $!);
}