From owner-freebsd-questions Mon Jan 22 4:10:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail4.one.net (mail4.one.net [206.112.192.132]) by hub.freebsd.org (Postfix) with ESMTP id 3615C37B400 for ; Mon, 22 Jan 2001 04:09:53 -0800 (PST) Received: from ip-216-23-53-120.adsl.one.net ([216.23.53.120] EHLO arrakis.desert-power.org ident: IDENT-NOT-QUERIED [port 58892]) by mail2.one.net with ESMTP id <124314-32045>; Mon, 22 Jan 2001 07:09:44 -0500 Received: (from mwithers@localhost) by arrakis.desert-power.org (8.9.3/8.9.3) id HAA13843 for freebsd-questions@freebsd.org; Mon, 22 Jan 2001 07:10:26 -0500 (EST) (envelope-from mwithers) From: "Mark B. Withers" To: freebsd-questions Subject: Re: Regarding SAMBA Message-ID: <20010122071026.D13193@arrakis.desert-power.org> References: <652569DC.00218BCC.00@Vashimail.ltitl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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 Date: Mon, 22 Jan 2001 07:09:32 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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