public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Shares with strange ACL settings
@ 2015-08-11  8:42 Achim Gratz
  2015-08-11 17:20 ` Andrey Repin
  2015-08-12 15:26 ` Corinna Vinschen
  0 siblings, 2 replies; 40+ messages in thread
From: Achim Gratz @ 2015-08-11  8:42 UTC (permalink / raw)
  To: cygwin

I've thought some more about those strange shares I need to use that have
inherited ACL that don't let me change the ACL at all and hence prevent
Cygwin from fixing up the POSIX permissions.  That generally ends up with
permissions like these:

% ll test
total 10
d---rwx---+ 1 gratz          Domain Users    0 Aug 10 11:51 ./
d---rwx---+ 1 Administrators Administrators  0 Aug 10 11:50 ../
----rwx---+ 1 gratz          Domain Users   18 Aug 10 11:51 blafasel*
----rwx---+ 1 gratz          Domain Users   18 Aug 10 11:51 blumblum*

Some applications that know how POSIX ACL are supposed to work conclude that
such directories or files are not readable:

% cd test
% perl -E 'say -r "." ? "readable" : "not readable";'
not readable
% perl -E 'say -r "blafasel" ? "readable" : "not readable";'
not readable

Other applications not using this shortcut and going all the way to
faccessat correctly determine readability:

% [ -r . ] && echo readable || echo not readable
readable
(1056)/mnt/upload/test > [ -r blafasel ] && echo readable || echo not readable
readable

If I access the files from another account (that has the same group
memberships that give read/write access to the share) or change the owner,
then the shortcut is never invoked:

$ perl -E 'say -r "." ? "readable" : "not readable";'
readable
$ perl -E 'say -r "blafasel" ? "readable" : "not readable";'
readable
$ [ -r . ] && echo readable || echo not readable
readable
$ [ -r blafasel ] && echo readable || echo not readable
readable

So, it would probably help if I had a mount option to force the ownership to
some account that I am never logged in as, either via a mount option or
whenever the POSIX user modes are all cleared.  I don't know if that might
confuse applications when they check ownership on newly created files,
though.  Is that something that is implementable easily so it could be
tested via a snapshot?


Regards,
Achim.



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

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2015-08-17 16:11 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-11  8:42 Shares with strange ACL settings Achim Gratz
2015-08-11 17:20 ` Andrey Repin
2015-08-11 17:29   ` Achim Gratz
2015-08-12 15:26 ` Corinna Vinschen
2015-08-12 15:50   ` Achim Gratz
2015-08-12 15:58     ` Corinna Vinschen
2015-08-12 18:09       ` Achim Gratz
2015-08-12 18:32         ` Corinna Vinschen
2015-08-12 21:03           ` Achim Gratz
2015-08-13 16:33             ` Corinna Vinschen
2015-08-13 17:48               ` Achim Gratz
2015-08-13 17:53               ` Corinna Vinschen
2015-08-14  8:30                 ` Corinna Vinschen
2015-08-14 10:56                   ` Achim Gratz
2015-08-14 13:45                     ` Corinna Vinschen
2015-08-14 18:25                       ` Achim Gratz
2015-08-14 18:43                         ` Corinna Vinschen
2015-08-17  8:20                         ` Corinna Vinschen
2015-08-15 15:11                       ` Achim Gratz
2015-08-15 18:31                         ` Corinna Vinschen
2015-08-15 19:04                           ` Achim Gratz
2015-08-17  8:28                         ` Achim Gratz
2015-08-17  9:03                           ` Corinna Vinschen
2015-08-17  9:12                             ` Achim Gratz
2015-08-17 10:45                               ` Corinna Vinschen
2015-08-17 10:51                                 ` Achim Gratz
2015-08-17 11:03                                   ` Corinna Vinschen
2015-08-17 11:09                                     ` Achim Gratz
2015-08-17 11:31                                       ` Corinna Vinschen
2015-08-17 11:39                                         ` Corinna Vinschen
2015-08-17 11:43                                           ` Achim Gratz
2015-08-17 12:42                                             ` Achim Gratz
2015-08-17 12:56                                               ` Corinna Vinschen
2015-08-17 13:12                                                 ` Achim Gratz
2015-08-17 14:53                                                   ` Corinna Vinschen
2015-08-17 15:47                                                     ` Achim Gratz
2015-08-17 16:11                                                       ` Corinna Vinschen
2015-08-15 15:41                       ` Marco Atzeri
2015-08-15 18:32                         ` Corinna Vinschen
2015-08-13 17:56       ` Achim Gratz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).