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]

Re: Possible issue with chown v8.25

Greetings, lostbits!

Please don't top-post. Thank you.

> On 5/15/2016 6:16 PM, Andrey Repin wrote:
>> Greetings, lostbits!
>>>                      Click Reorder
>> Don't do that.
>>>                      This corrects the error.
>> No, it breaks permissions.
>>> For the directory and contained subdirectories, the <owner> is put into
>>> the "Group or user names" popup of the Security property. The <owner>
>>> has no assigned permissions.
>>> The contained files in the directory have <owner> in the "Group or user
>>> names" popup of the Security property. The <owner> has all permissions
>>> except special permissions.
>>> Summary: When the chown -R command is given, the ownership and group of
>>> the directory and contained files are changed but the permissions of the
>>> directory are detected as incorrect by Win7.
>> Don't confuse Explorer and OS itself.
>>> The owner has no
>>> permissions in the directory but does have permissions in the files
>>> contained in the directory.
>>> I don't think that this is something that I caused through a fault of my
>>> own. It looks like a chown bug.  Is there a workaround?
>> You didn't tell us, what is your problem.
>> You did not provide icacls and getfacl listings.

> Your English is fine - mine is problematical.

> What are icacls and getfacl listings?

icacls is a Windows tool to look at permissions.
getfacl is POSIX/Cygwin one.

> My problem is that after a chown the directories are inaccessible

Seeing exact permissions after change may help determine the culprit.

> and/or
> I can not look at the Security property without getting a diagnostic.
> I have assumed that the diagnostic indicates an issue. I get the feeling
> that the diagnostic does not indicate a fault and that things should 
> work fine.

> I just ran a minitest:

 >> mkdir gg
 >> touch gg/cc

icacls gg
getfacl gg

 >> chown -R <owner>:<group> gg

icacls gg
getfacl gg

> In the Explorer I get the same diagnostic on gg and the <owner> has no 
> permissions. Is this the correct behavior (and if you tell me what 
> icacls and getfacl listings I will provide them.

From your description, this doesn't look like correct behavior, but more
information may be necessary to find out, what's going wrong.

Do you have latest Cygwin installed?
Did you change default nsswitch settings?
Do you [still] have manual mapping in /etc/{passwd,group} ? (I strongly
suggest to get rid of both these files.)
Is this a domain member or standalone system?

With best regards,
Andrey Repin
Monday, May 16, 2016 13:35:37

Sorry for my terrible english...

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