- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP/Copy from HP to Linux
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
Forums
Discussions
Discussions
Discussions
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
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
05-28-2004 06:51 AM
05-28-2004 06:51 AM
FTP/Copy from HP to Linux
Red Hat 9
Trying to copy a directory form HP to Linux and keep all of the permission sets intact. I have tried ftp but everything gets hosed on the transfer and root owns everything. I need to copy this directory and keep ALL of the owners/groups/permissions the same. I tried mounting the HP to the Linux and doing a cp... errors. I tried doing a tar... errors. Suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 06:56 AM
05-28-2004 06:56 AM
Re: FTP/Copy from HP to Linux
Since you don't say what errors you got, here is what I would do:
Dir you want to copy is /my/dir on the HP-UX machine
# tar -cvf /var/tmp/my.dir.tar /my/dir
FTP this tar archive to the linux box.
# cd /
# tar -xvf /var/tmp/my.dir.tar
This SHOULD recreate the file / directory ownerships and permissions as they were on the HP-UX machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 06:59 AM
05-28-2004 06:59 AM
Re: FTP/Copy from HP to Linux
The FTP program will create the files with the same ownership as the user running the ftp program, so it sounds like your are logged in as root on the Linux system.
I'm a big fan of using 'cpio' for these kinds of jobs. Use cpio on the HP side and redirect to a file, ftp that file over to Linux, and then use cpio on Linux to load it up. Do you have the same user accounts [and same UIDs] on the Linux box as you do for the files on the HP box?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 07:04 AM
05-28-2004 07:04 AM
Re: FTP/Copy from HP to Linux
There are a few gotchas.
tar actually does not build the user name into the permissions of the tarball. It builds the unix numeric id in.
So if user schmo is user 212 on Linux and user bagel is user 212 on HP-UX then all those nice files will end up being owned by user bagel after the transfer.
The way around this when possible is to make sure the numeric user numbers in /etc/passwd are the same on both machines.
Also, Linux has openssh on it. This enables you to set up password free file copying to a HP-UX system.
The caveat there is I'm personally not sure if openssh/secure shell was ever ported for HP-UX 10.20, which is nearly a year past its support drop dead date.
If however you deal with the user number issues and find secure shell/openssh for HP-UX 10.20(I believe there still is a 10.20 version on http://www.openssh.org) you might find this to be a very smooth solution.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 07:06 AM
05-28-2004 07:06 AM
Re: FTP/Copy from HP to Linux
on linux box, edit .rhosts in root's home directory and put line:
hpux_system_name root
at the end of the file. If file does not exist, just create it with 400 permissions
login to hpux box as root
cd /directory_to_copy
find . -depth -hidden | cpio -ocx | remsh linux_box_name "(cd target_dir ; cpio -idcumvx)"
make sure you already have the target_dir on linux box. whatever else will be created under it but this level must exist pre-copying.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 07:08 AM
05-28-2004 07:08 AM
Re: FTP/Copy from HP to Linux
If either system is NFS mounted you could just use "cp -p", otherwise, I suggest you use tar to create the backup on HP, compress it, then ftp it over to Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 07:23 AM
05-28-2004 07:23 AM
Re: FTP/Copy from HP to Linux
cd
rcp -pr *
Thanks,
Tonya Underwood