[Samba] Incorrect format of Text
Mario.Valetti at kytegroup.com
Tue Aug 19 10:16:49 GMT 2003
I had received a mail off-list from someone else pointing me in the right
direction on Friday. He also mentioned that I may be able to use a utiliy
called unix2dos / dos2unix to add the characters needed for notepad to
insert a new line.
I failed to mention in my original E-mail that the file would indeed open
correctly formatted within wordpad - As you advised.
Thanks to all for the assistance.
From: Brand, Thomas R. [mailto:TRBrand at cvs.com]
Sent: 15 August 2003 19:37
If the files were created on Unix, they will have Unix linefeeds;
Notepad doesn't know how to deal with them.
FTP automagically changes the linefeeds from Unix to Windows.
Use MS "Wordpad" instead of Notepad. Wordpad is more intelligent and
can correctly interpret Unix & Windows linefeeds.
From: Mario Valetti [mailto:Mario.Valetti at kytegroup.com]
Sent: Friday, August 15, 2003 12:12 PM
I am running Samba 2.2.8a on Solaris 8, and have shared out a directory
containing some simple text files.
The issue I am experiencing is the following:
If the files are FTP'd from the Unix box to a Windows machine and opened
using Notepad, the formatting is correct. If the same files are either
opened directly or copied (from the Samba share) from the Unix box to the
Windows machine, and again opened in Notepad, the formatting of the file is
completely messed up.
I have noticed, looking at the properties of the files from the windows box,
that there is a size difference between the files that are FTP'd and those
from the Samba share.
I am sure this has something to do with it.
One of those files details:
File through Samba share reads - 3.24 KB (3,319 bytes)
The same file Ftp'd reads - 3.37 KB (3,451 bytes)
Any comments on where I could start (besides getting rid of Windows) would
More information about the samba