This is the mail archive of the
mailing list for the Cygwin project.
Re: crazy default permissions
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 5 Oct 2016 06:40:24 +0200
- Subject: Re: crazy default permissions
- Authentication-results: sourceware.org; auth=none
- References: <57F48222.firstname.lastname@example.org>
On 05/10/2016 06:31, Mitch Deoudes wrote:
mkdir has suddenly started creating directories with strange
permissions. As far as I can tell, it's related to making directories
nested inside other directories that were also created within cygwin.
As you create deeper and deeper nestings, the perms get more and more
screwed up. It starts at the second level deep, with the setuid flag,
and eventually gets to the point where you're making directories that
don't even have user read/write.
I tried this on a brand new installation of the latest cygwin64, with no
modifications, as of just now:
$ mkdir baz
$ ls -ld baz
drwxrwxr-x+ 1 mitch None 0 Oct 5 00:11 baz <--- first dir looks
reasonable (but doesn't match umask)
$ mkdir baz/bob
$ ls -l baz
drwsrwsr-t+ 1 mitch None 0 Oct 5 00:11 bob <--- second dir is weird
$ mkdir baz/bob/foo
$ ls -l baz/bob/
d--Srws--T+ 1 mitch None 0 Oct 5 00:12 foo <--- third dir doesn't
even have user read/write
$ mkdir baz/bob/foo/blob
mkdir: cannot create directory `baz/bob/foo/blob': Permission denied
Any guesses what might be causing this? I'm pretty sure this was
working as of my last update, which was probably several months ago.
where is your home ?
$ cygpath -u ~
and what are its ACLS ?
$ cacls $(cygpath -w ~)
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple