From c8be0235d65a1cda14fa8cffc96cf86b72262094 Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Fri, 23 Aug 2002 13:24:07 +0000 Subject: added homes --- samba_wizard/samba.wiz | 53 ++++++++++++++++++++++++++++------------- samba_wizard/scripts/Smbconf.pm | 22 +++++++++++++---- 2 files changed, 53 insertions(+), 22 deletions(-) (limited to 'samba_wizard') diff --git a/samba_wizard/samba.wiz b/samba_wizard/samba.wiz index f490b5dc..4de65ece 100644 --- a/samba_wizard/samba.wiz +++ b/samba_wizard/samba.wiz @@ -24,7 +24,12 @@ shellVariable="wiz_do_printer_sharing" > - + + @@ -123,7 +128,7 @@ variableName="doFileSharing" forceEnabled="true" forceDisabled="false" - helpText="Enable Common File Sharing Area" + helpText="Enable /home/samba/public Sharing Area" > @@ -135,31 +140,37 @@ helpText="Enable Server Printer Sharing" > + + + + - - - + + + + explanations("Enabling samba file sharing"); - comment_menu("homes", ";"); + mkdir_p("/home/samba/public"); + standalone->explanations("Enabling samba /home/samba/public sharing"); +# comment_menu("homes", ";"); comment_menu("public", ""); chg_var("global", "security", "share"); } +sub homes { + standalone->explanations("Enabling samba /home/samba/public sharing"); + comment_menu("homes", ""); + chg_var("global", "security", "share"); +} + sub printer_sharing { standalone->explanations("Enabling samba printer sharing"); comment_menu("printers", ""); @@ -104,10 +115,11 @@ sub do_it { my $ip = $o->get_from_known_dev("IP"); file_sharing() if $ENV{wiz_do_file_sharing}; printer_sharing() if $ENV{wiz_do_printer_sharing}; + homes() if $ENV{wiz_do_homes}; chg_var("global", "hosts allow", $ip); chg_var("global", "security", "share"); write_conf("/etc/samba/smb.conf"); - system("/etc/rc.d/init.d/smb restart >/dev/null 2>&1"); + system("/etc/rc.d/init.d/smb restart"); 10; } 1; -- cgit v1.2.1