This is the mail archive of the
mailing list for the Cygwin project.
Aw: Re: chmod failed: Invalid argument
- From: "Rainer Blome" <rainer dot blome at gmx dot de>
- To: cygwin at cygwin dot com
- Date: Thu, 28 Jan 2016 17:06:53 +0100
- Subject: Aw: Re: chmod failed: Invalid argument
- Authentication-results: sourceware.org; auth=none
- References: <trinity-f5aca8d9-16f5-41e1-a521-60beada36d8e-1453991058087 at 3capp-gmx-bs39>, <20160128144429 dot GC27369 at calimero dot vinschen dot de>
- Sensitivity: Normal
> Corinna Vinschen wrote 2016-01-28 15-44:
> On Jan 28 15:24, Rainer Blome wrote:
> The "In-Reply-To" is still missing in your mails, so you're invariably
> breaking threading. T'would be nice if you could make your mailer
> behave :)
This is the first time that I have a mail to reply to,
hope the threading is preserved now.
> > > Corinna Vinschen wrote:
> > > On Jan 28 01:27, Christopher Cobb wrote:
> > >> Or maybe chmod is broken, like it is on my machine:
> > >> $ chmod 777 x
> > >> chmod: changing permissions of ÃxÃ: Invalid argument
> > > Can you please send the icacls output of the current directory and
> > > the icacls out for the file x?
> > Here are the icacls outputs for the test case:
> > $ umask
> > 0027
> > $ mkdir bar
> > $ cd bar
> > $ icacls .
> > . hostname\username:(I)(OI)(CI)(F)
> This... doesn't look like an ACL created by Cygwin.
$ type mkdir
mkdir is hashed (/usr/bin/mkdir)
$ md5sum /usr/bin/mkdir
> If you're running Cygwin 2.4.1,
CYGWIN_NT-6.1 hostname 2.4.1(0.293/5/3) 2016-01-24 11:26 x86_64 Cygwin
> the acl should always at least contain ACEs for the
> default POSIX perms, plus a NULL ACE:
> foo NULL SID:(DENY)(Rc,S)
In Windows Explorer -> `bar` -> RMB -> Properties -> Security ->
Advanced, I am told that it inherits ist permissions from `base`,
the parent of `bar`. (To be precise, it inherits from its
grandparent, but I assume that the length of the ancestor chain is
not important here.)
> For directories also inheritable default perms for "CREATOR OWNER" and
> "CREATOR GROUP". Is that really a Cygwin mkdir?!?
As far as can see, yes, see above.
> And then, what about
> this unknwon group with gid 213? What does
> $ getent group 213
> print? Something's weird here...
getent group 213; echo $?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple