X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Reply-To: fww AT ieee DOT org Date: Wed, 21 Jul 2010 13:44:29 -0400 Message-ID: Subject: remove alternate access method / access control list From: Fred Wheeler To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 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 In cygwin, ls adds a plus sign (+) after the file mode to indicate there is an alternate access method, like this. % touch foo % ls -l foo -rw-r--r--+ 1 200006507 None 0 2010-07-21 11:32 foo chmod affects the access permissions according to the ntsec system, but has no effect on this alternate access method. % chmod 644 foo % ls -l foo -rw-r--r--+ 1 200006507 None 0 2010-07-21 11:32 foo Is there a way to 'clean up' the access control information for a file, so that its access permissions are exactly those cygwin would set to get the current file mode, with no others? It would have an effect like this: % command-I-am-looking-for foo % ls -l foo -rw-r--r-- 1 200006507 None 0 2010-07-21 11:32 foo (the plus-sign is now gone) I take care of file permissions carefully via cygwin chmod but I found that on one machine somehow 'Authenticated Users' got write permission on files to which I had otherwise applied 'chmod og-w'. I'd like to be able to fix problems like this and whatever else might have snuck in. Thanks, Fred Wheeler -- 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