Samba problem with "add share command"
Hi. I've set up a Samba PDC. It works fine. Well, almost. When I'm trying to add a share to the PDC it does nothing. The line written by me is:
add share command = /etc/samba/scripts/addshare.pl %configFile %shareName %pathName %comment
And the "addshare.pl" script is:
#!/usr/bin/perl -w
use strict;
my $file;
open($file ,">result.txt");
print $file "addshare was invoked\n";
foreach my $arg(@ARGV) {
print $file "$arg \n";
}
close $file;
But, when I add a share, windoze says it has been successfuly added, but it does nothing. The perl script doesn't even create the "result.txt" file. Could you help me?
|