samba-users May 2010 archive
Main Archive Page > Month Archives  > samba-users archives
samba-users: Re: [Samba] Spurious data in file retrieved from Wi

Re: [Samba] Spurious data in file retrieved from Windows share via Samba

From: Michael Wood <esiotrot_at_nospam>
Date: Fri May 21 2010 - 22:42:29 GMT
To: Robert Dodier <robert@infotility.com>

On 21 May 2010 22:48, Robert Dodier <robert@infotility.com> wrote:
> Hello,
>
> I am using Samba to read a file on a Windows share from Linux.
> Linux version is Ubuntu 9.04 (I think). Not sure about the Samba
> version (sorry, can't check it now); it's whatever was packaged with
> Ubuntu. Windows version is Windows Server 2003 SP 2.

Looks like version 3.3.2:
http://packages.ubuntu.com/jaunty/samba

> Sometimes the file contains obviously spurious data such as
> random bytes, and excerpts of programs or log files.
> I'm not sure if the spurious data which are interpolated into
> the file originate from the Linux side or Windows;
> the identifiable text comprise fragments of Python, PHP,
> HTML, and what appears to be a log from MS SharedView
> (I could be mistaken about that).
>
> The file is updated every few minutes on the Windows side
> (new lines are appended). When I read (via cp) any given version

Ah, so you're using smbmount or mount.cifs or something like that to
get access to the Windows share?

Then I think you want to talk to the cifs-utils developers:
https://lists.samba.org/mailman/listinfo/linux-cifs-client

> of the file, the spurious parts remain the same. However,
> each time the file is updated, some of the spurious stuff goes
> away and some new stuff appears.
>
> A co-worker on the Windows side reports that there are
> no spurious data in the file when he looks at it.
>
> I have no power to change anything on the Windows side and
> probably no ability to ask for logs or other debugging info.

Presumably you can get logs on the Linux side if necessary?

Do things look better if you use smbclient to copy the file?

> Thanks in advance for any light you can shed on this problem.

-- Michael Wood <esiotrot@gmail.com> -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba