Re: [ITP] FUSE 2.8

2016-07-19 Thread Corinna Vinschen
On Jul 18 19:51, Bill Zissimopoulos wrote:
> On 7/18/16, 12:43 PM, Bill Zissimopoulos wrote:
> 
> 
> >On 7/18/16, 1:19 AM, Corinna Vinschen wrote:
> >
> >>Btw., I didn't apply it yet because I was still waiting for a mailing
> >>list reply to https://cygwin.com/ml/cygwin/2016-06/msg00460.html
> >>On second thought, this didn't look like a question, much.  So, what do
> >>you prefer?
> >>
> >>  "WinFSP+nobody"
> >>  "nodomain+nobody"
> >>  "no+body"
> >>
> >>Personally I like the third variation but I'm not religious about it.
> >
> >My preference is for nodomain+nobody, primarily because the individual
> >components “nodomain”, “nobody” describe the lack of domain and username
> >when read in isolation (i.e. not in the construction nodomain+nobody). But
> >WinFsp does not use these names (only the SID’s/UID’s) and you, Corinna,
> >as the Cygwin lead are more qualified than me to choose what fits Cygwin
> >best.
> 
> BTW, I now note that no+body is more inline with the existing practice of
> "Unknown+User”. I assumed that the parts of the “no+body” construction can
> be found in isolation (resulting in a domain of “no” and a user name of
> “body”), but perhaps this is not possible. Either way I am happy with
> whatever you choose.

Let's just try how it looks like.  I applied the patch using
"nodomain+nobody" for now and uploaded a developer snapshot to
https://cygwin.com/snapshots/

Please take a look.


Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


signature.asc
Description: PGP signature


Re: [ITP] FUSE 2.8

2016-07-19 Thread Bill Zissimopoulos
On 7/19/16, 2:41 AM, Corinna Vinschen wrote:

>
>Let's just try how it looks like.  I applied the patch using
>"nodomain+nobody" for now and uploaded a developer snapshot to
>https://cygwin.com/snapshots/

Hi, Corinna:

Here is simple SSHFS output with the patched cygwin1.dll:

billziss@windows:/cygdrive/y$ ls -l
total 12
-r--r--r-- 1 nodomain+nobody nodomain+nobody 15 Jun 23 23:57 Foo.txt
-- 1 nodomain+nobody nodomain+nobody 15 Jul 15 16:48
HelloWorld.txt
d- 1 nodomain+nobody nodomain+nobody  0 Jul 15 16:49 opt

And here are the actual permissions reported to the OS (and Cygwin):

billziss@windows:/cygdrive/y$ for f in *; do cacls $f /S; done
Y:\Foo.txt 
"D:P(A;;0x1f0199;;;S-1-0-65534)(A;;FR;;;S-1-0-65534)(A;;FR;;;WD)"

Y:\HelloWorld.txt
"D:P(A;;0x1f0198;;;S-1-0-65534)(A;;0x120088;;;S-1-0-65534)(A;;0x120088;;;WD
)"

Y:\opt 
"D:P(A;;0x1f0198;;;S-1-0-65534)(A;;0x120088;;;S-1-0-65534)(A;;0x120088;;;WD
)"

You will note that nodomain+nobody is used for both user and group. Which
my understanding is that it is legal in Windows. [I note however that
Cygwin is able to distinguish between Unknown+User and Unknown+Group.]


Let me know what you think.

Bill