Thanks for these comments. I checked today with my ISP (Demon UK) who are a bit paranoid about security.
They have confirmed that their implementation of Apache is set to create new files in public directories with a default of 600. Hence this is what happens despite the intention of the Links script.
They tell me the best way to overcome this is to add something like
(syntax probably not correct!) commands at the appropriate points in the script. I am not a programmmer, but can hack the script with a bit of a "guiding hand". Can you advise me where to insert such a command, and in which script?
Thanks in advance.
P.S.
Since then, I have "hacked" into nph-build.cgi and added three lines into the code
Code:
# Crete the new page, and do a bit of HTML work for the main page.
if ($build_span_pages) {
$umask = umask ();
umask (02); open (NEW, ">$build_new_path/$date$build_extension") or cgierr ("unable to open what's new page: $build_new_path/$build_index. Reason: $!");
$use_html ?
print qq|\tNew Links for <a href="$build_new_url/$date$build_extension" TARGET="_blank">$date</a>: $total\n| :
print qq|\tNew Links for $date: $total\n|;
print NEW &site_html_new;
close NEW;
umask($umask); $main_link_results .= qq|<li><a href="$build_new_url/$date$build_extension">$long_date</a> ($total).|;
$main_total += $total;
}
else {
$link_results .= "</blockquote>";
}
}
if ($build_span_pages) {
$link_results = "<ul>$main_link_results</ul>";
$total = $main_total;
}
$title_linked = &build_linked_title ("New");
and hey presto, my What's New daily file comes out with permission 664, which is OK. Is there a more elegant way to achieve this?
[This message has been edited by tony_macdonnell (edited April 25, 2000).]