From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Sandels, Mark" Newsgroups: gmane.os.tru64.managers Subject: cpio -i preservation of ownership and permissions Date: Thu, 28 Aug 2003 15:00:21 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <4A5C2665E0A6D61193BC00065B3B5AE66C059A@orh2.orh.nhs.uk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1062079506 426 80.91.224.253 (28 Aug 2003 14:05:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2003 14:05:06 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Aug 28 16:05:04 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19sNOZ-00041c-00 for ; Thu, 28 Aug 2003 16:05:04 +0200 Original-Received: (qmail 25983 invoked by uid 5); 28 Aug 2003 14:04:54 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 25974 invoked by uid 49493); 28 Aug 2003 14:04:54 -0000 Original-Received: from Mark.sandels@orh.nhs.uk by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-4.7/5.0):. Processed in 0.570875 secs); 28 Aug 2003 14:04:54 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 28 Aug 2003 14:04:53 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HKC007G61S01L@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 28 Aug 2003 10:04:53 -0400 (EDT) Original-Received: from mail4.nhs.uk (mail4.nhs.uk [194.72.23.241]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HKC00E441RTE6@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 28 Aug 2003 10:04:42 -0400 (EDT) Original-Received: from hn-ext by mail4.nhs.uk (Sendmail 8.8.8) with esmtp id 19sNNs-0007nk-00; Thu, 28 Aug 2003 15:04:20 +0100 Original-Received: from relay.nhs.uk (194.62.42.141) by relayint2.nhs.uk (Syntegra-I2 7.0.008) id 3F35B673003239F8 for tru64-unix-managers@ornl.gov; Thu, 28 Aug 2003 15:04:20 +0100 Original-Received: from orhimc1.orh.nhs.uk (193.37.255.58) by relay.nhs.uk (Syntegra-1 7.0.008) (authenticated as smtp1_orh_nhs_uk@es2002.nhs.uk) id 3F4DFA480000ABC7 for tru64-unix-managers@ornl.gov; Thu, 28 Aug 2003 15:04:20 +0100 Original-Received: by orhimc1.orh.nhs.uk with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Aug 2003 15:00:36 +0100 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:5218 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5218 Hi List, I've found that a cpio -iBcdumv does not always preserve permissions and owner/group ownership of directories when the command is run as root. What happens in these cases is that the owner and group are set to "root" and "system" respectively. Has anyone else any experience of this and is there a work-around? Mark Sandels Systems Developer Oxon Acute Health Informatics Service (OAHIS) Oxford Radcliffe Hospitals NHS Trust Tel: (01865) (2)22879 Email: mark.sandels@orh.nhs.uk Mail: Room 121 Manor House Annexe John Radcliffe Hospital Headley Way Headington Oxford OX3 9RR