This is the mail archive of the
cygwin
mailing list for the Cygwin project.
remove alternate access method / access control list
- From: Fred Wheeler <fred dot wheeler at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 21 Jul 2010 13:44:29 -0400
- Subject: remove alternate access method / access control list
- Reply-to: fww at ieee dot org
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