[Samba] FW: Samba Support
Rowland Penny
rowlandpenny at googlemail.com
Fri Oct 31 07:25:00 MDT 2014
On 31/10/14 12:50, steve wrote:
> On 31/10/14 13:42, Rowland Penny wrote:
>> On 31/10/14 12:23, David Nolan wrote:
>>> It is hard-coded in the program.
>>>
>>> set blank w.sys-buff1
>>> edit into
>>> w.sys-buff1 $$
>>> "smbclient //cavaliercarpe07/MP -N -c
>>> 'put"(@=0) $$
>>>
>>> "/mega/data/sop/edidata/MSP/output/"(@=42) $$
>>>
>>> w.filename2(@=76) $$
>>>
>>> "import\"(@=91) $$
>>>
>>> w.filename2(@=98) $$
>>> "'"(@=112)
>>> * watch w.sys-buff1
>>> pipe w.pline from w.sys-buff1
>>>
>>> This is the code which generates:-
>>> 'smbclient //cavaliercarpe07/mp -N -c 'put
>>> /mega/data/sop/edidata/MSP/output/MP00999999.xml import/MP00999999.xml'
>>>
>>> This works fine until I disable the guest account on Windows.
>>>
>>> This is my smb.conf file :-
>>>
>>> # Samba config file created using SWAT
>>> # from tonym (128.1.1.235)
>>> # Date: 2008/04/23 14:03:09
>>>
>>> # Global parameters
>>> [global]
>>> workgroup = CAVALIERCARPET
>>> netbios name = SCOSYSV3
>>> server string = Samba Server - SCOSYSV3
>>> security = SHARE
>>> encrypt passwords = Yes
>>> map to guest = Bad User
>>> null passwords = Yes
>>> username map = /usr/local/samba/lib/users.map
>>> log file = /usr/local/samba/var/log.%m
>>> max log size = 50
>>> local master = No
>>> dns proxy = No
>>> guest account = guest
>>> hosts allow = 128.1.0.0/255.255.0.0 192.168.3.0/255.255.255.0
>>> 192.168.40.0/255.255.255.0 192.168.70.0/255.255.255.0 217.34.45.247
>>> 80.177.200.10 10.0.0.0/255.0.0.0
>>> oplocks = No
>>>
>>> [homes]
>>> comment = Home Directories
>>> path = /mega/user/%S
>>> read only = No
>>> create mask = 0644
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [printers]
>>> comment = All Printers
>>> path = /usr/spool/samba
>>> printable = Yes
>>> browseable = No
>>>
>>> [vat]
>>> comment = Intrastat Data
>>> path = /mega/data/sop/edidata/vat
>>> create mask = 0644
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [carpetlink]
>>> comment = Waybill Data
>>> path = /mega/data/sop/carpetlink
>>> create mask = 0644
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [blackberry]
>>> comment = Blackberry Extracts
>>> path = /mega/data/sop/blackberry
>>> create mask = 0644
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [xtranz]
>>> comment = XTRANZ
>>> path = /mega/data/xtranz
>>> read only = No
>>> create mask = 0666
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [hht]
>>> comment = Hand Held Terminals
>>> path = /mega/data/sop/hht
>>> read only = No
>>> create mask = 0664
>>> guest ok = Yes
>>>
>>> [edi]
>>> comment = EDI Data
>>> path = /mega/data/sop/edidata
>>> read only = No
>>> create mask = 0644
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [legal]
>>> comment = EDI Data
>>> path = /mega/data/sop/edidata/legal
>>> read only = No
>>> create mask = 0644
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [SCMT-IMPORT]
>>> comment = SCMT
>>> path = /mega/data/sop/edidata/RSA
>>> read only = No
>>> create mask = 0664
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [ATTACHMENTS]
>>> comment = SCMT ATTACHMENTS
>>> path = /mega/data/sop/edidata/RSA/input/attachments
>>> create mask = 0644
>>> guest ok = Yes
>>> browseable = No
>>>
>>> [bacs-ip]
>>> comment = BACS-IP Directory
>>> path = /mega/data/hrdata/unibacs/bacs-ip
>>> read only = No
>>> create mask = 0644
>>> guest ok = Yes
>>> browseable = Yes
>>>
>>> [avweb]
>>> comment = AVIVA WEB Data
>>> path = /mega/data/sop/edidata/AVIVA
>>> read only = No
>>> create mask = 0666
>>> guest ok = Yes
>>>
>>> [webdata-input]
>>> comment = Cavalier WEB Data Input
>>> path = /mega/data/sop/edidata/webdata/input
>>> read only = No
>>> create mask = 0666
>>> guest ok = Yes
>>>
>>> [webdata-output]
>>> comment = Cavalier WEB Data Output
>>> path = /mega/data/sop/edidata/webdata/output
>>> read only = No
>>> create mask = 0666
>>> guest ok = Yes
>>>
>>> [MSP]
>>> comment = Masterpiece XML Output
>>> path = /mega/data/sop/edidata/MSP/output
>>> read only = No
>>> create mask = 0666
>>> guest ok = Yes
>>>
>>> [MNAUT]
>>> comment = Masternaut XML Output
>>> path = /mega/data/sop/edidata/MNAUT
>>> read only = No
>>> create mask = 0666
>>> guest ok = Yes
>>>
>>> [cutting]
>>> comment = Cutting Count
>>> path = /mega/user/joe
>>> read only = Yes
>>> create mask = 0666
>>> guest ok = Yes
>>>
>>> [reports]
>>> comment = Spooled Reports
>>> path = /mega/data/printouts
>>> read only = Yes
>>> create mask = 0644
>>> guest ok = Yes
>>>
>>>
>>> Regards
>>>
>>> Dave
>>>
>>> -----Original Message-----
>>> From: samba-bounces at lists.samba.org
>>> [mailto:samba-bounces at lists.samba.org]
>>> On Behalf Of Rowland Penny
>>> Sent: 31 October 2014 12:11
>>> To: sambalist
>>> Subject: Re: [Samba] FW: Samba Support
>>>
>>> On 31/10/14 12:02, David Nolan wrote:
>>>> You seem to be focusing on the wrong thing.
>>>>
>>>> The language is irrelevant.
>>>>
>>>> The samba2 box is talking to the windows 2008 box in a 'dialect' that
>>>> it does understand, it is working already.
>>>>
>>>> The problem I have is that when I disable the guest account in
>>>> windows, the samba connection to the windows share fails.
>>>>
>>>> -----Original Message-----
>>>> From: samba-bounces at lists.samba.org
>>>> [mailto:samba-bounces at lists.samba.org]
>>>> On Behalf Of Rowland Penny
>>>> Sent: 31 October 2014 11:56
>>>> To: samba at lists.samba.org
>>>> Subject: Re: [Samba] FW: Samba Support
>>>>
>>>> On 31/10/14 11:34, David Nolan wrote:
>>>>> On 31/10/14 12:16, David Nolan wrote:
>>>>>> I don't understand the questions.
>>>>>>
>>>>>> The programs are running on the UNIX box. They reside in a folder
>>>> called
>>>>>> '/mega/appl/unisop2.1/s28alf'.
>>>>>> The program creates and xml file in a folder on UNIX then calls
>>>>>> smbclient to 'put' the file into a windows share.
>>>>>>
>>>>>> With the guest account in windows enabled it works fine.
>>>>>>
>>>>>> With the guest account in windows disabled, it fails.
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: steve [mailto:steve at steve-ss.com]
>>>>>> Sent: 31 October 2014 10:52
>>>>>> To: David Nolan
>>>>>> Subject: Re: [Samba] Samba Support
>>>>>>
>>>>>> On 31/10/14 11:50, David Nolan wrote:
>>>>>>> This is not a manual process, it is a running process which happens
>>>>>>> 1000 times a day.
>>>>>>>
>>>>>>> The process must use the 'guest' account on windows to do the
>>>>>>> transfer.
>>>>>>> What I need to do is disable the 'guest' account on windows.
>>>>>>> When I
>>> do
>>>>>> the
>>>>>>> transfer fails.
>>>>>>>
>>>>>>> I need to be able to specify a different account to be used instead
>>>>>>> of 'guest'.
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: samba-bounces at lists.samba.org
>>>>>>> [mailto:samba-bounces at lists.samba.org]
>>>>>>> On Behalf Of steve
>>>>>>> Sent: 31 October 2014 10:25
>>>>>>> To: samba at lists.samba.org
>>>>>>> Subject: Re: [Samba] Samba Support
>>>>>>>
>>>>>>> On 31/10/14 09:50, David Nolan wrote:
>>>>>>>
>>>>>>>> I have some programs which call SMBCLIENT to 'put' files onto a
>>>>>>>> Windows share.
>>>>>>>>
>>>>>>> Hi
>>>>>>> Where are the programs? What are the programs? If it's as simple as
>>>>>>> ssh-ing into the sco box with the command it shoud be easy. But
>>>>>>> we're guessing unless you can tell us or give us examples of how
>>>>>>> you reach the
>>>>>> domain.
>>>>>>> --
>>>>>>> To unsubscribe from this list go to the following URL and read the
>>>>>>> instructions: https://lists.samba.org/mailman/options/samba
>>>>>>>
>>>>>> Hi
>>>>>> Please answer the question and then send to the list.
>>>>>> Cheers,
>>>>>> Steve
>>>>>>
>>>>> Hi
>>>>> The list. Please post to the list, not to me!
>>>>> Thanks.
>>>>>
>>>>>
>>>>>
>>>> This may be a bit more complex than what you think, It could be that
>>>> your
>>>> samba2 box is trying to talk to your windows 2008 box in a 'dialect'
>>>> that it does not understand. I think that you need to raise the log
>>>> level in smb.conf and then see if you get anything that can point you
>>>> in the direction of the problem.
>>>>
>>>> I personally have never heard of the MEGA programming language, is it
>>>> available for a more recent OS ??
>>>>
>>>> Rowland
>>>>
>>>> --
>>>> To unsubscribe from this list go to the following URL and read the
>>>> instructions: https://lists.samba.org/mailman/options/samba
>>>>
>>> OK, got it now, how does the program use smbclient, is there a conf
>>> file or
>>> is it hardcoded into the program, also can you post your smb.conf.
>>>
>>> Rowland
>>>
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions: https://lists.samba.org/mailman/options/samba
>>>
>> OK I think that you need to change the 'hardcoding' to get it to output
>> something like this:
>>
>> 'smbclient //cavaliercarpe07/mp -U username%pass -c 'put
>> /mega/data/sop/edidata/MSP/output/MP00999999.xml import/MP00999999.xml'
>>
>> Where username%pass is something like 'david%password' and david is a
>> valid windows user.
>>
>> Can you please keep replies on the list.
>>
>> Rowland
>>
> Hi
> Another way is to join the domain. Can you get the program and data
> onto e.g. Linux else where we can install a more recent samba version?
> Any old box will do. It doesn't have to cost.
> HTH,
> Steve
>
Hi Steve, this is what I was trying to get to, but the OP just wanted to
know how to get his very ancient setup to continue working, the only way
I could see was to add a username & password, only problem is this sends
a clear password over the net.
I have never heard of this 'MEGA' program and so do not know if a
version of it will run on Linux, if it will, then yes, join the machine
to the domain and then use kerberos.
Rowland
More information about the samba
mailing list