Skip site navigation (1)Skip section navigation (2)
From:      "Mark B. Withers" <mwithers@one.net>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Regarding SAMBA
Message-ID:  <20010122071026.D13193@arrakis.desert-power.org>
In-Reply-To: <652569DC.00218BCC.00@Vashimail.ltitl.com>; from Prasad.Chemburkar@Vashimail.ltitl.com on Mon, Jan 22, 2001 at 01:08:03AM -0500
References:  <652569DC.00218BCC.00@Vashimail.ltitl.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is all related to how both DOS and Unix end the lines in a text
file.

In DOS, they end with a carriage return and a line feed. In Unix, they
end with only a line feed. That is the extra control characters you
see at the end of the line when you are editing them in FreeBSD.

There are utilities to convert and get rid of the extra characters. I
have been able to do so with vi in the past, but consider when you
remove the extra characters in FreeBSD, that when you go back into
Windows and edit the same file....the lines all wrap to the same line
and you see junk characters there as well (line feeds without a
carriage return - which look like little black boxes).

You may want to check out:

www.samba.org

to see if there are any advanced configuration options dealing with
the translation. I believe there may be, but am not sure as it's been
a long time since I've dealt with samba.

Mark

On Mon, Jan 22, 2001 at 01:08:03AM -0500, Prasad.Chemburkar@Vashimail.ltitl.com wrote:
> 
> 
> 
> Hi!
> Everyone,
> 
> i have SAMBA working between  Windows and FreeBSD with users able to logon from
> windows.
> i face problem when transferring a text file from Windows to FreeBSD server ie
> when file is copied from Windows explorer to
> FreeBSD drive, it  is copied properly but when i do telnet to FreeBSD server and
> use vi editor to see it, it shows some junk characters. i guess by default text
> files are transfered in binary mode so vi editor shows control characters, how
> to get rid of this problem? any specific settings in /usr/local/etc/smb.conf
> file.
> 
> 
> Thanks,
> regards
> prasad
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010122071026.D13193>