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 and file permissions on Windows 7

My Windows 7 (64-bit) machine is part of a domain and I normally log
into it as a domain user.

Something is misconfigured because Cygwin programs seem to have a
problem with file permissions. For example:
  $ ls -l visitor*
  ----------+ 1 cory Domain Users 3236 2010-07-11 22:37 visitor.cpp
  ----------+ 1 cory Domain Users 2260 2010-07-14 09:16 visitor.h

If I open visitor.cpp with Cygwin vim, it tells me it is read-only. I
can force a save though with w!. If I open this same file with notepad
or my Windows version of gvim, I can edit and save the file and am never
told it is read-only.

I've been researching quite a bit and I recreated my /etc/passwd and
group files with the -d switch. I thought it had something to do with
the domain, but now I don't think that's the case. I'm starting to think
it might be the filesystem or perhaps how it is mounted. The mount
command reports:
$ mount
  C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
  C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
  C:/cygwin on / type ntfs (binary,auto)
  C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
  Y: on /cygdrive/y type ntfs (binary,posix=0,user,noumount,auto)

Drive Y is a mapping to a network location. Interestingly, ls -l
/cygdrive returns:
  d---------+ 1 ????????       ????????     24576 2010-07-09 11:18 c
  drwx------+ 1 Administrators Domain Users     0 2010-07-14 06:58 y

The c folder looks weird, the y folder looks correct.

Any suggestions?


Problem reports:
Unsubscribe info:

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