summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsamba_wizard/Sambashare.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/samba_wizard/Sambashare.pm b/samba_wizard/Sambashare.pm
index 7a88441b..1ab71b5e 100755
--- a/samba_wizard/Sambashare.pm
+++ b/samba_wizard/Sambashare.pm
@@ -265,7 +265,7 @@ $o->{pages} = {
}
if (! -d $o->{var}{wiz_addshare_path}) {
mkdir_p($o->{var}{wiz_addshare_path}) or $::in->ask_warn(N("Error"), N("Can\'t create the directory, please enter a correct path."));
- system("chmod 755 $o->{var}{wiz_addshare_path}");
+
return 1;
} else { return 0 }
},
@@ -533,6 +533,7 @@ sub do_it_remove_share {
my $w = $in->wait_message(N("Samba share"), N("Configuring your Samba server..."));
my $share = $o->{var}{wiz_selected_share};
delete $samba->{$share};
+ if ($share =~ /Profiles/) { delete $samba->{global}{'logon home'} }
write_conf_restart_smb();
undef $w;
@@ -606,6 +607,7 @@ sub do_it_add_profiles {
my $in = 'interactive'->vnew('su', 'Samba');
my $w = $in->wait_message(N("Samba share"), N("Configuring your Samba server..."));
$samba->{Profiles}{path} = $o->{var}{wiz_profiles_path};
+ $samba->{global}{'logon home'} = "\\\\%L\\Profiles\\%u";
$samba->{Profiles}{browseable} = $o->{var}{wiz_profiles_browseable};
$samba->{Profiles}{'guest ok'} = $o->{var}{wiz_profiles_guest_ok};
$samba->{Profiles}{writable} = $o->{var}{wiz_profiles_writable};