user: $user
group: $group
protection: $perm";
}
$pp = prot('boinc_project', 'boinc_project', '0770');
$mp = prot('boinc_master', 'boinc_project', '0770');
$mm = prot('boinc_master', 'boinc_master', '0770');
$mm2 = prot('boinc_master', 'boinc_master', '0700');
$mm3 = prot('boinc_master', 'boinc_master', '0555+setuid+setgid');
$mm4 = prot('boinc_master', 'boinc_master', '0775+setgid');
$pp3 = prot('boinc_project', 'boinc_project', '0770+setuid+setgid');
function show_dir($name, $prot, $contents) {
$x = "
$name $prot |
";
foreach ($contents as $c) {
$x .= $c;
}
$x .= "
|
";
return $x;
}
function show_file($name, $prot) {
return "
$name $prot
";
}
echo
show_dir('BOINC data', $mm, array(
show_dir('projects', $mp, array(
show_dir('setiathome.berkeley.edu', $mp, array(
show_file('CC-created files', $mp),
show_file('app-created files', $pp)
))
)),
show_dir('slots', $mp, array(
show_dir('0', $mp, array(
show_file('CC-created files', $mp),
show_file('app-created files', $pp)
))
)),
show_dir('locale', $mm, array(
show_dir('en_US', $mm, array(
show_file('BOINC Manager.mo', $mm),
show_file('wxstd.mo', $mm)
))
)),
show_dir('switcher', $mm2, array(
show_file('switcher', $pp3)
)),
show_file('account_*.xml', $mm),
show_file('acct_mgr_login.xml', $mm),
show_file('client_state.xml', $mm),
show_file('gui_rpc_auth.cfg', $mm),
show_file('sched_reply*', $mm),
show_file('sched_request*', $mm),
));
echo "
";
echo
show_dir('BOINC executables', $mm, array(
show_file('BOINC Manager', $mm4),
show_file('Core client', $mm3),
));
?>