[Bug 861671] Re: cpio does not preserve ownership when run as root

Launchpad Bug Tracker 861671 at bugs.launchpad.net
Thu May 16 15:20:54 UTC 2013


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: cpio (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cpio in Ubuntu.
https://bugs.launchpad.net/bugs/861671

Title:
  cpio does not preserve ownership when run as root

Status in “cpio” package in Ubuntu:
  Confirmed

Bug description:
  when copying files, as root,  with the traditional incantation: find srcdir -depth -print | cpio -pdamuv /destdir
  the ubuntu version of GNU cpio does not preserve the ownerships of the files/directories.

  it acts as if --no=preserve-owner was specified.

  testing on CentOS, which also uses GNU cpio, does preserve the ownership, when running as root.
  also, when the same test is running using the package 'bsdcpio', ownership is preserved as expected.

  this could be a flaw in how GNU cpio is determining "running as root".

  this issue would make cpio effectively useless for restoring backups,
  as all ownership data is lost when the files are extracted.

  this could be related to:
  https://bugs.launchpad.net/ubuntu/+source/cpio/+bug/695299

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: cpio 2.10-1ubuntu2
  ProcVersionSignature: Ubuntu 2.6.32-24.43-server 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-24-server x86_64
  Architecture: amd64
  Date: Wed Sep 28 14:25:06 2011
  InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  SourcePackage: cpio

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpio/+bug/861671/+subscriptions




More information about the foundations-bugs mailing list