X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sat, 10 Nov 2007 00:00:26 -0800 From: Ross Jordan To: cygwin AT cygwin DOT com Subject: Why do file permissions change after editing a file with vim? Message-ID: <20071110080026.GB8564@numb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/