X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 15 May 2010 14:15:51 +0400 Message-ID: Subject: Re: Windows 7 file permissions and ls -l From: Vorfeed Canal To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 I see this problem too. I believe something wrong is with cygwin1.dll. I'm not sure about your case, but in my case these are all files created by regular Windows (non-cygwin) programs. The owner does not get any special rights in my version of Windows 7! Instead the pseudo-group "Authenticated User" gets all the rights. Very annoying: if the cygwin program just tries to do the operation it succeeds, but if the program calls stat and checks the permissions it believes it has no rights at all and refuses to work. Easy to fix from outside of cygwin (without admin rights), but I've found no way to do this from inside of cygwin if you have no administrator access :-( On Fri, May 14, 2010 at 4:43 PM, Greg Mo wrote: > I have an odd occurrence on my Win 7 x64 system with Cygwin 1.7.5. > > When I create files, I may set the permissions to 644 or 755. =A0However,= after > a period of time, I went to edit one of those files in vi and it said tha= t the > file is read-only. =A0I did an ls -l and was shocked to find that many of= the > directories have been changed to d--------- and files to ----------, whic= h I > did not do. =A0The only way that I can change those permissions is to ope= n an > rxvt/bash window in administrator mode and then chmod, even though I am l= isted > as the owner. > > I don't see a pattern to which files get changed and which are left alone. > > Is anyone else having this windoze automagic permission change scenario a= nd > does anyone know what to do to stop it? > -- 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