- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpio and ownership
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2003 11:54 AM
тАО06-23-2003 11:54 AM
cpio and ownership
I have problems with cpio and ownership of files. I have to copy some directories with different owners as root.
------
man cpio:
Duplicate a directory hierarchy:
cd olddir
find . -depth -print | cpio -pd newdir
-------
This works fine with HP-UX 11.00 but this doesn't work with 11.11. The file permissions are correct, but the owner of all files is root ??
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2003 11:56 AM
тАО06-23-2003 11:56 AM
Re: cpio and ownership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2003 12:01 PM
тАО06-23-2003 12:01 PM
Re: cpio and ownership
tar cvf - /directory/path | tar -C /new/directory/path xf -
Also, the GNU version of tar handles large files without problem
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2003 12:08 PM
тАО06-23-2003 12:08 PM
Re: cpio and ownership
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2003 12:24 PM
тАО06-23-2003 12:24 PM
Re: cpio and ownership
You talk that owner of your files on the
11i machine is root and on 11.00 machine someone else?
So change the permission as you want, if it's
nfs directory so check the export/mount options that you made.
Check to use the tar command it's good to.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2003 12:31 PM
тАО06-23-2003 12:31 PM
Re: cpio and ownership
Try :
find . -depth -print | cpio -pdlmuv /newdir
HTH,
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2003 01:07 PM
тАО06-23-2003 01:07 PM
Re: cpio and ownership
Thank you for your quick answers.
The problem was a large UID.
In this company they are using large UID's (above 64k) and cpio, tar from HP cannot work with this UID's. (No problem between 11.00 and 11.11)
So I tried Gnu-tar and it works.
Thanks
Chris