delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/21/13:45:05

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: <AANLkTil9c8b1KpYm1Pyrlv3LYEQ1rL-87H5khqdHSpOk@mail.gmail.com>
Subject: remove alternate access method / access control list
From: Fred Wheeler <fred DOT wheeler AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019