Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-23-2006, 06:26 AM   #1
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/ %configFile %shareName %pathName %comment

And the "" 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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:54 AM
Samba --> nobody run "add user script = /usr/sbin/useradd %u ....." ???? Unconfigured Linux - Software 1 02-21-2006 10:01 AM
samba-share "Directory Locked" Xstack Linux - Software 1 03-20-2005 08:22 PM
Authenticating to Samba share using "Active Directory Server" hlslaughter Linux - Software 36 07-23-2004 11:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 PM.

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