[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RAQ4] Disappearing site control panels!
- Subject: Re: [cobalt-users] [RAQ4] Disappearing site control panels!
- From: Bruce Timberlake <Bruce.Timberlake@xxxxxxx>
- Date: Fri May 31 19:26:21 2002
- Organization: Sun Microsystems, Inc.
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Isa Alemdag wrote:
>
> Wow, having read this, I remember now that after I deleted a
> site my control panel went all empty as well. I am still figuring
> out how to restore them. Alternatively I will rebuild everything
> from scratch again.
There was a bug that deleted all virtual site symlinks if you
accidentally double-clicked the trashcan icon in IE. A subsequent patch
fixed the problem, so I'm thinking your RaQ isn't patched up as current
as it should be. Which means you might be "open" for some other
security-related problems as well... please check the download page and
install all patches listed there, from bottom to top (chronological
order - newest patches are at the top of the page).
There is a script that will do your repairs for you (internally named
symrepair.pl). Install this and run as root:
#!/usr/bin/perl
# creates the admin server pages for all domains on
# a RaQ 3 or RaQ 4 except for the home site
require Cobalt::Layout;
require Cobalt::Admserv;
require Cobalt::Vsite;
require Cobalt::Meta;
use Cobalt::Product;
foreach my $vhost (Cobalt::Vsite::vsite_list()) {
next unless ($$vhost[1]);
my $fqdn = $$vhost[1];
my ($group) = Cobalt::Meta::query("type" => "vsite",
"keys" => ["name"],
"where" => ["name", "<>", "default",
"and", "fqdn", "=", "$fqdn"]);
next if($group eq "home");
if($group) {
warn "creating admserver pages for group: $group site
name: $fqdn\n";
Cobalt::Layout::layout_siteManage($group, $fqdn);
Cobalt::Admserv::admserv_set_access(qq[$AdminPages_dir/siteManage/$group],
'require', 'group', $group);
unlink("$AdminPages_dir/siteManage/$fqdn") if (-l
"$AdminPages_dir/siteManage/$fqdn");
symlink("$AdminPages_dir/siteManage/$group",
"$AdminPages_dir/siteManage/$fqdn");
} else {
warn "unkown fqdn: $fqdn or group: $group\n";
}
}
Hopefully mail wrapping didn't munge this too badly...
--
Bruce Timberlake
Sun Cobalt Technology Engineer
Sun Microsystems, Inc.
E: bruce.timberlake@xxxxxxx
T: 877-718-3569 / x69369