This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Vim removes write permission when writing file not owned by current user on Samba share


Suprise!  Another permission problem!

This is a problem Iâm guessing stems from three different sources:
Vim, Cygwin, and Samba.  With

set backupcopy=auto

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 = 0770 in smb.conf
on the Samba server solves the problem, but thatâs 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]