This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

setfacl(2.4.0.13): options --no-mask and --mask


Hi Corinna,

Euh ... I do not pretend to be familiar (less understand) with the features
that go into 2.4.0 (as I have no need for them) ...

... but, by just browsing the source code of setfacl and by just looking at
the user interface of setfacl ... See below.

Regards,
Henri

Source code of setfacl (2.4.0.13):

struct option longopts[] = {
  {"remove-all", no_argument, NULL, 'b'},
  {"delete", required_argument, NULL, 'x'},
  {"file", required_argument, NULL, 'f'},
  {"remove-default", no_argument, NULL, 'k'},
  {"modify", required_argument, NULL, 'm'},
  {"no-mask", required_argument, NULL, 'n'}, <==== no_argument?
  {"mask", required_argument, NULL, '\n'}, <==== no_argument?
  {"replace", no_argument, NULL, 'r'},
  {"substitute", required_argument, NULL, 's'},
  {"help", no_argument, NULL, 'h'},
  {"version", no_argument, NULL, 'V'},
  {0, no_argument, NULL, 0}
};
const char *opts = "bd:f:hkm:nrs:Vx:";

-----
%% uname -a
CYGWIN_NT-6.1-WOW Seven 2.4.0(0.292/5/3) 2015-12-19 21:08 i686 Cygwin
%% touch foo.txt
%% setfacl --no-mask -m g:Replicator:rw- foo.txt
Usage: setfacl [-n] {-f ACL_FILE | -s acl_entries} FILE...
       setfacl [-n] {[-bk]|[-x acl_entries] [-m acl_entries]} FILE...
[snip]

Try 'setfacl --help' for more information.
%% setfacl --no-mask Corinna -m g:Replicator:rw- foo.txt <==== ?
%%

%% setfacl --mask -m g:Replicator:rw- foo.txt
Usage: setfacl [-n] {-f ACL_FILE | -s acl_entries} FILE...
       setfacl [-n] {[-bk]|[-x acl_entries] [-m acl_entries]} FILE...
[snip]

Try 'setfacl --help' for more information.
%% setfacl --mask Corinna -m g:Replicator:rw- foo.txt <==== ?
%%

=====

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]