GNU bug report logs -
#25589
Probably a bug in cp
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25589 in the body.
You can then email your comments to 25589 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#25589
; Package
coreutils
.
(Tue, 31 Jan 2017 16:30:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Francesco Asnicar <francescoasnicar <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Tue, 31 Jan 2017 16:30:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Dear all,
I'm facing a problem with the cp command when using the -a (or
--preserve=all) parameter.
The problem is that the ownership of either files and folders is not
preserved.
I did several tests in which I tried to used different options, like
--preserve=all instead of using -a, -p, and --preserve=ownership.
I tried different version of cp present in different OS, for instance, the
version 8.21 on a Ubuntu 14.04 and the version 8.26 on Arch (update as
today).
The result, regardless of the version and OS is always the same, the
ownership is not preserved.
Many thanks,
Francesco
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#25589
; Package
coreutils
.
(Tue, 31 Jan 2017 18:54:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 25589 <at> debbugs.gnu.org (full text, mbox):
On 01/31/2017 12:18 PM, Francesco Asnicar wrote:
> Dear all,
> I'm facing a problem with the cp command when using the -a (or
> --preserve=all) parameter.
> The problem is that the ownership of either files and folders is not
> preserved.
> I did several tests in which I tried to used different options, like
> --preserve=all instead of using -a, -p, and --preserve=ownership.
> I tried different version of cp present in different OS, for instance, the
> version 8.21 on a Ubuntu 14.04 and the version 8.26 on Arch (update as
> today).
> The result, regardless of the version and OS is always the same, the
> ownership is not preserved.
>
> Many thanks,
> Francesco
You did not provide an example, but I guess that you are running cp(1)
as a regular user. From the documentation [1]:
‘-p’
‘--preserve[=attribute_list]’
...
‘ownership’
Preserve the owner and group. On most modern systems, only users
with appropriate privileges may change the owner of a file, and
ordinary users may preserve the group ownership of a file only
if they happen to be a member of the desired group.
[1] http://www.gnu.org/software/coreutils/cp
So on a normal GNU/Linux system, you have to run the command as the root
user in order to successfully preserve the ownership. Thus said, it's not
the cp(1) utility which is enforcing that rule, but the kernel (for a
good reason, of course).
Did you fall over this aspect?
Thanks & have a nice day,
Berny
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#25589
; Package
coreutils
.
(Sun, 28 Oct 2018 08:02:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 25589 <at> debbugs.gnu.org (full text, mbox):
tags 25589 moreinfo
close 25589
stop
(triaging old bugs)
On 2017-01-31 11:53 a.m., Bernhard Voelker wrote:
> On 01/31/2017 12:18 PM, Francesco Asnicar wrote:
>> Dear all,
>> I'm facing a problem with the cp command when using the -a (or
>> --preserve=all) parameter.
[...]
>
> You did not provide an example, but I guess that you are running cp(1)
> as a regular user. From the documentation [1]:
>
> ‘-p’
> ‘--preserve[=attribute_list]’
[...]
>
> Did you fall over this aspect?
With no further follow-ups, I'm closing this bug.
Discussion can continue by replying to this thread.
-assaf
Added tag(s) moreinfo.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 28 Oct 2018 08:02:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
25589 <at> debbugs.gnu.org and Francesco Asnicar <francescoasnicar <at> gmail.com>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 28 Oct 2018 08:02:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 25 Nov 2018 12:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.