[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31675: Existing directories and files permissions are not being kept
From: |
Pádraig Brady |
Subject: |
bug#31675: Existing directories and files permissions are not being kept intact |
Date: |
Sun, 3 Jun 2018 15:20:11 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
tag 31675 notabug
close 31675
stop
On 31/05/18 20:50, Gunjan Gupta wrote:
> Hi,
>
> Suppose I have the following directory structure
>
> /
> | - destination (mode=0755)
> | - dir (mode=0755)
> | - file.txt (mode=0644)
> | - source
> | - dir (mode=0755)
> | - file.txt (mode=0644)
>
> My user has a umask of 0077. Now if I run the following cp command
>
> cp -aR --no-preserve=mode /source/* /destination
>
> I think the mode of destination/dir should stay as 0755 but it changes to
> 0700. Is this expected?
>
> I am using coreutils 8.26-3 on Debian Stretch
This is a little surprising as cp didn't create /destination/dir in this case.
However if it did create that dir, then the mode would be expected.
So cp is keeping the destination consistent whether it previously existed or
not.
cheers,
Pádraig
- bug#31675: Existing directories and files permissions are not being kept intact, Gunjan Gupta, 2018/06/01
- bug#31675: Existing directories and files permissions are not being kept intact,
Pádraig Brady <=
- Message not available
- bug#31675: Existing directories and files permissions are not being kept intact, Gunjan Gupta, 2018/06/03
- bug#31675: Existing directories and files permissions are not being kept intact, Pádraig Brady, 2018/06/03
- bug#31675: Existing directories and files permissions are not being kept intact, Pádraig Brady, 2018/06/03
- bug#31675: Existing directories and files permissions are not being kept intact, Gunjan Gupta, 2018/06/03
- bug#31675: Existing directories and files permissions are not being kept intact, Gunjan Gupta, 2018/06/04
bug#31675: Existing directories and files permissions are not being kept intact, Paul Eggert, 2018/06/03