GNU bug report logs -
#14371
Argument --parents ignores default ACLs
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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 <at> server mirror_crop]# mkdir -p foo/bar
[root <at> server mirror_crop]# mkdir foobar
[root <at> server mirror_crop]# ll -d foobar
drwxrws---+ 2 root apache 4096 May 8 09:37 foobar
[root <at> server mirror_crop]# ll -d foo
drwxr-s---+ 3 root apache 4096 May 8 09:36 foo
[root <at> 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 <at> 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 <at> 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.
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 181 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.