LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2006, 05:26 AM   #1
bit128_linux
Member
 
Registered: Dec 2005
Location: Brasov, Romania
Distribution: Slackware, Bluewhite64
Posts: 49

Rep: Reputation: 15
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba --> nobody run "add user script = /usr/sbin/useradd ....." ??!! Unconfigured Fedora 1 02-23-2006 04:54 AM
Samba --> nobody run "add user script = /usr/sbin/useradd %u ....." ???? Unconfigured Linux - Software 1 02-21-2006 09:01 AM
samba-share "Directory Locked" Xstack Linux - Software 1 03-20-2005 07:22 PM
Authenticating to Samba share using "Active Directory Server" hlslaughter Linux - Software 36 07-23-2004 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration