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.15): for next year !!!!!


Hi Corinna,

For next year !!!!! (posted as a reminder) ... See below.

Regards,
Henri

64-%% uname -a
CYGWIN_NT-6.1 Seven 2.4.0(0.292/5/3) 2015-12-21 13:10 x86_64 Cygwin

64-%% touch bar.txt
64-%% getfacl bar.txt
# file: bar.txt
# owner: Henri
# group: None
user::rw-
group::r--
other:r--

64-%% setfacl -m g:None:rw- -x g:None: bar.txt # add and delete ...
64-%% getfacl bar.txt
# file: bar.txt
# owner: Henri
# group: None
user::rw-
group::r--
group:None:rwx <==== surprise! (this one, I did not even specify!)
mask:rwx
other:r--

64-%% ls -l bar.txt
-rw-rwxr--+ 1 Henri None 0 Dec 21 17:06 bar.txt
64-%% setfacl -x m: bar.txt
setfacl: Invalid argument <==== nice ... as there is still a g:uid:perm entry

64-%% setfacl -x g:None:,m: bar.txt
64-%% getfacl bar.txt
# file: bar.txt
# owner: Henri
# group: None
user::rw-
group::r--
other:r--

64-%% # Hurrah!

-----
in stead of the last 'setfacl' command above:

64-%% setfacl -x g:None: bar.txt
64-%% getfacl bar.txt
# file: bar.txt
# owner: Henri
# group: None
user::rw-
group::r--
mask:r-- <==== uhm, superfluous ...
other:r--

64-%% setfacl -x m: bar.txt
64-%% getfacl bar.txt
# file: bar.txt
# owner: Henri
# group: None
user::rw-
group::r--
other:r--

64-%% # Hurrah!

=====

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