From owner-freebsd-questions@FreeBSD.ORG Thu Sep 9 16:49:56 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 2BBDB16A4CE for ; Thu, 9 Sep 2004 16:49:56 +0000 (GMT) Received: from lists.freedombi.com (mcpeakmedia.com [207.179.98.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7194B43D2D for ; Thu, 9 Sep 2004 16:49:55 +0000 (GMT) (envelope-from charles@idealso.com) Received: by lists.freedombi.com (Postfix, from userid 1000) id 6B47672E96; Thu, 9 Sep 2004 12:49:54 -0400 (EDT) Received: from freedombi.com (localhost [192.168.10.108]) by lists.freedombi.com (Postfix) with SMTP id 86915724AF; Thu, 9 Sep 2004 12:49:52 -0400 (EDT) Received: from 24.11.146.21 (SquirrelMail authenticated user charles) by freedombi.com with HTTP; Thu, 9 Sep 2004 12:49:52 -0400 (EDT) Message-ID: <37275.24.11.146.21.1094748592.squirrel@freedombi.com> In-Reply-To: References: Date: Thu, 9 Sep 2004 12:49:52 -0400 (EDT) From: "Charles Ulrich" To: "Daren Russell" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on freedombi.com X-Spam-Level: X-Spam-Status: No, hits=-3.7 required=7.0 tests=BAYES_00,PRIORITY_NO_NAME autolearn=no version=2.63 cc: freebsd-questions@freebsd.org 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: Thu, 09 Sep 2004 16:49:56 -0000 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 -- Charles Ulrich System Administrator Ideal Solution - http://www.idealso.com