Subject: bug#14371: closed (Re: bug#14371: Argument --parents ignores default ACLs)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 09 May 2013 19:38:02 +0000

Your bug report

#14371: Argument --parents ignores default ACLs

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
14371: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14371
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#14371: Argument --parents ignores default ACLs
From: Bernhard Voelker <[email-masked]>
To: Killer Bassist <[email-masked]>
Cc: [email-masked]
Date: Thu, 09 May 2013 21:36:53 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

tag 14371 notabug
thanks

On 05/08/2013 07:41 PM, Killer Bassist wrote:
> It appears that -p is actually using the umask where without -p it uses the
> defaults =)

Thanks for the bug report.  However we've seen a very similar one
just a few days ago (http://bugs.gnu.org/14249).

This is the behavior required by POSIX:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkdir.html

You can read more in the above mentioned bug report.  Meanwhile,
I'm closing this bug, but you're free to continue discussion if
you have further questions.

Have a nice day,
Berny

Subject: Argument --parents ignores default ACLs
From: Killer Bassist <[email-masked]>
To: [email-masked]
Date: Wed, 8 May 2013 10:41:29 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello there,
Stumbled on to this when I discovered permissions issues on directories
created from a script.  The -p option ignores default ACLs set on the
parent directory.

Note that the mkdir -p command does not seem to give the g+w attribute to
new directories. Even the bar directory is missing it.

[root@server mirror_crop]# mkdir -p foo/bar
[root@server mirror_crop]# mkdir foobar

[root@server mirror_crop]# ll -d foobar
drwxrws---+ 2 root apache 4096 May  8 09:37 foobar
[root@server mirror_crop]# ll -d foo
drwxr-s---+ 3 root apache 4096 May  8 09:36 foo

[root@server mirror_crop]# getfacl foo
# file: foo
# owner: root
# group: apache
# flags: -s-
user::rwx
group::r-x
other::---
default:user::rwx
default:group::rwx
default:other::---

[root@server mirror_crop]# getfacl foobar
# file: foobar
# owner: root
# group: apache
# flags: -s-
user::rwx
group::rwx
other::---
default:user::rwx
default:group::rwx
default:other::---

And to show the default...
[root@server virtualmirror]# getfacl mirror_crop/
# file: mirror_crop/
# owner: root
# group: apache
# flags: -s-
user::rwx
group::rwx
other::---
default:user::rwx
default:group::rwx
default:other::---

It appears that -p is actually using the umask where without -p it uses the
defaults =)

-- 
Thank you for your time,
Dylan

-With all due respect, please do not enter this email address into any mass
CC mailings, web forms, eCards, friends networks (facebook/myspace), joke
pages or the like.