cp ignore default ACLs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: coreutils
Hi,
Given:
yacoob:
# file: .
# owner: yacoob
# group: yacoob
user::rwx
group::r-x
other::r-x
default:user::rwx
default:group::r-x
default:other::r-x
I get following bad behaviour:
yacoob:
-r--r--r-- 1 yacoob yacoob 0 2007-09-22 15:27 /tmp/bam
yacoob:
yacoob:
-r--r--r-- 1 yacoob yacoob 0 2007-09-22 15:27 bam
I do believe cp should get the access rights from the default ACL of the directory we're copying files to, with --no-preserve in effect.
This is similar to http://
Best regards,
KT.
The man page is also wrong. It describes 'cp -p' is the same as 'cp --preserve= mode,ownership, timestamps' . This is correct. However, it also describes 'cp -a', the same as 'cp -dpR'. This is incorrect. It should actually be 'cp -dpPR' which should be 'cp -dPR --preserve= mode,ownership, timestamps, context, links', which is obviously incorrect with the initial -p.