Marcus Leon
Marcus Leon

Reputation: 56699

Cygwin/vim Windows 7 file access issue

It appears that on Windows 7 Cygwin/vim thinks all files are read only. You can edit the files fine in Textpad/Notepad but vim thinks they are read only. There are number of reported occurrences but I can't see a solution. ??


Update: Per accepted answer, created the file C:\cygwin\etc\fstab.d\myname with the entry below.

none /cygdrive cygdrive binary,posix=0,user 0 0,acl

Per the comment you'll see in C:\cygwin\etc\fstab, this statement is the default Cygwin mount, save for the acl which I added.

Upvotes: 2

Views: 5145

Answers (2)

Luc Hermitte
Luc Hermitte

Reputation: 32966

I guess another solution would be to use the native version of Vim instead of the cygwin one.

Upvotes: 3

Markus Kull
Markus Kull

Reputation: 1477

Cygwin tries to impose a POSIX compatibility layer over the windows access control lists, which often leads to many problems.

In older versions of Cygwin a cheap solution was to disable this POSIX compatibility layer by setting the environment variable "CYGWIN=ntsec". Nowadays it seems as one must set the "acl" option for your drive(s).

http://www.cygwin.com/cygwin-ug-net/using.html#mount-table

This has some drawbacks. If you try to run a secured cygwin installation for multiple users, then better use a real linux, this will save so much hassle.

Upvotes: 3

Related Questions