This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Why do file permissions change after editing a file with vim?
- From: Ross Jordan <rjordan at numb dot ca>
- To: cygwin at cygwin dot com
- Date: Sat, 10 Nov 2007 00:00:26 -0800
- Subject: Why do file permissions change after editing a file with vim?
When I modify files with cygwin's vim, they become inaccessible. It seems the
permissions are getting changed when I save the file. Any idea why this is
happening? This does not happen from a bash shell, only when I directly
launch vim from a windows cmd.exe window. See below.
D:\ver
Microsoft Windows [Version 6.0.6000]
D:\>where vim.exe
c:\cygwin\bin\vim.exe
d:\>echo t > test
d:\>attrib test
A D:\test
d:\>icacls test
test BUILTIN\Administrators:(I)(F)
NT AUTHORITY\SYSTEM:(I)(F)
NT AUTHORITY\Authenticated Users:(I)(M)
BUILTIN\Users:(I)(RX)
Successfully processed 1 files; Failed processing 0 files
d:\vim test
[Add a characted and save :wq!]
d:\>more test
Cannot access file D:\test
d:\>attrib test
A R D:\test
d:\>icacls test
test DOMAIN\rjordan:(D,Rc,WDAC,WO,WEA,WA)
DOMAIN\Domain Users:(Rc,REA,RA)
Everyone:(Rc,REA,RA)
Successfully processed 1 files; Failed processing 0 files
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/