From owner-freebsd-questions@FreeBSD.ORG Fri Sep 10 08:22:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18C2616A4CE for ; Fri, 10 Sep 2004 08:22:38 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C69443D1F for ; Fri, 10 Sep 2004 08:22:37 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C5gfz-0001FS-00 for ; Fri, 10 Sep 2004 10:22:35 +0200 Received: from dsl-62-3-100-125.zen.co.uk ([62.3.100.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Sep 2004 10:22:35 +0200 Received: from darenr by dsl-62-3-100-125.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Sep 2004 10:22:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Daren Russell Date: Fri, 10 Sep 2004 09:22:30 +0100 Lines: 50 Message-ID: References: <37275.24.11.146.21.1094748592.squirrel@freedombi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dsl-62-3-100-125.zen.co.uk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040421 X-Accept-Language: en-us, en In-Reply-To: <37275.24.11.146.21.1094748592.squirrel@freedombi.com> Sender: news Subject: Re: Vim on SMB share X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 08:22:38 -0000 Charles Ulrich wrote: > Daren Russell said: > >>Hi, >> >>I know this is slightly OT, but it is still using FBSD! >> >>I have a SMB share mounted, and can generally write to it. I can copy >>files to it, delete them, use 'ee' to edit and save them. >> >>However, when using Vim, I can load and edit without warning, but if I >>try to save it I get "E212: Can't open file for writing" >> >>I can however create a new file on the share using Vim without problems, >>try to edit it and get the same problem. >> >>Whilst using Gentoo Linux, I did not have an issue with this (but that >>box has destroyed itself, hence the move to a FBSD box) >> >>Is this a known thing with Vim/SMB/FBSD? Any ideas on something stupid >>I have overlooked? >> >>Thanks >>Daren > > > Hi, > > I recall running into this and other problems when I was using Samba 3.x on a > 4.10 FreeBSD server and smbfs on a 5.2.1 FreeBSD client. In frustration, I > updated the server to 5.2.1 and downgraded Samba to 2.x and haven't had > problems since. I'd have a hard time believing that going to 5.2.1 on the > server side fixed the problem. Rather, I suspect that FreeBSD's smbfs has had > little attention lately and doesn't like the changes that have been made to > Samba since 2.x. > > Alternatively, some of the recent patches to 5.2.1 may have had some positive > effect on the client's smbfs. Wish I could be more specific on all of this. > > Charles Ulrich Thanks for the ideas. The server side is Win2k (so not much I can do there!), the BSD is using version 3 of the Samba client, so I'll try downgrading it to version 2 and see how I go. I guess it must also be to do with the way Vim edits files, as the basic FBSD editor (ee) seems to manage. Regards Daren