- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scp to remote server, and keep the ownership and p...
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
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-02-2004 06:41 AM
тАО06-02-2004 06:41 AM
scp to remote server, and keep the ownership and permission the same
I wanted to keep the same ownership as they were on local system.
I tried -p option, and it did not work either.
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:47 AM
тАО06-02-2004 06:47 AM
Re: scp to remote server, and keep the ownership and permission the same
i would use ssh to do a tar ( remote), copy that file and extract localy.
Regards,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:51 AM
тАО06-02-2004 06:51 AM
Re: scp to remote server, and keep the ownership and permission the same
Of course, ff you have files owned by different users this becomes awkward.
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:57 AM
тАО06-02-2004 06:57 AM
Re: scp to remote server, and keep the ownership and permission the same
then as the user use scp -p
that will work.
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
тАО06-02-2004 07:09 AM
тАО06-02-2004 07:09 AM
Re: scp to remote server, and keep the ownership and permission the same
Your solution would be,
1. Use the owner of the file to use copying and setup key based authentication for the user(it would be painful if you ant multiple users to use this).
2. If you want to copy a dir.structure, use the tar | ssh command as follows,
tar cpf - dir | (ssh remote_Server "cd remote_dir; tar xpf -")
HTH,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 07:18 AM
тАО06-02-2004 07:18 AM
Re: scp to remote server, and keep the ownership and permission the same
2 cents from the peanut gallery.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 07:24 AM
тАО06-02-2004 07:24 AM
Re: scp to remote server, and keep the ownership and permission the same
The user account and id number are consistency on both remote and local servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 07:30 AM
тАО06-02-2004 07:30 AM
Re: scp to remote server, and keep the ownership and permission the same
-USA..