| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| Date: | Wed, 23 Sep 2009 19:58:46 +0200 |
| Message-ID: | <dbfc82860909231058q5cae097fi7f26fa605a8c90d@mail.gmail.com> |
| Subject: | Vim removes write permission when writing file not owned by current user on Samba share |
| From: | Nikolai Weibull <now AT bitwi DOT se> |
| To: | cygwin AT cygwin DOT com |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Suprise! Another permission problem! This is a problem I=E2=80=99m guessing stems from three different sources: Vim, Cygwin, and Samba. With set backupcopy=3Dauto Vim on Cygwin 1.7 removes write permission when writing a file not owned by the current user on a Samba share. The Samba share has ACL support turned on and gets its user information from an Active Directory. Files with a mode of 0770 (which is what all files on the share have) get a mode of 0750 after Vim has written the file. File ownership is retained. Setting force security mode =3D 0770 in smb.conf on the Samba server solves the problem, but that=E2=80=99s a suboptimal solution. Nano has the same problem. Emacs writes it with mode 0644, which makes even less sense. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |