- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Maintaining file ownership with scp and rcp
Operating System - HP-UX
1752571
Members
5229
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО10-20-2010 12:26 PM
тАО10-20-2010 12:26 PM
On other flavors of UNIX that I have worked with, when using "scp -p" or "rcp -p" the file permissions and ownership of the file are maintained acrossed the copy.
With 11iv3, the file permissions are maintained, but the group and owner are changed to root and sys upon copying (as root) instead of the original owner/group.
I need to be able to copy user files between systems as root and maintain the user and group ownership.
Is there something I am missing or this a feature?
Thanks.
With 11iv3, the file permissions are maintained, but the group and owner are changed to root and sys upon copying (as root) instead of the original owner/group.
I need to be able to copy user files between systems as root and maintain the user and group ownership.
Is there something I am missing or this a feature?
Thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 01:55 AM
тАО10-21-2010 01:55 AM
Solution
> Is there something I am missing or this a
> feature?
I know nothing, but I wouldn't expect it to
work. Or to be a good idea in most cases.
In general, I wouldn't expect the UID+GID
info to be compatible between different
systems, so preserving it could lead to many
kinds of trouble, especially if there's an
suid/sgid bit set somewhere.
> I need to be able to [...]
I'd normally use a "tar" pipeline, with an
rsh/remsh or ssh on one side. A Forum search
for keywords like, say,
tar pipeline
should find many examples in old threads.
> On other flavors of UNIX [...]
That's a little vague. I'm too lazy to run a
test, but a Solaris "man" page says "and
ACLs", but nothing explicit about
owner+group:
http://docs.sun.com/app/docs/doc/816-5165/rcp-1
Tru64 is more negative ("extended file
attributes (property list), including the
access control list (ACL), if any, are not
copied."):
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN1/0306____.HTM
> feature?
I know nothing, but I wouldn't expect it to
work. Or to be a good idea in most cases.
In general, I wouldn't expect the UID+GID
info to be compatible between different
systems, so preserving it could lead to many
kinds of trouble, especially if there's an
suid/sgid bit set somewhere.
> I need to be able to [...]
I'd normally use a "tar" pipeline, with an
rsh/remsh or ssh on one side. A Forum search
for keywords like, say,
tar pipeline
should find many examples in old threads.
> On other flavors of UNIX [...]
That's a little vague. I'm too lazy to run a
test, but a Solaris "man" page says "and
ACLs", but nothing explicit about
owner+group:
http://docs.sun.com/app/docs/doc/816-5165/rcp-1
Tru64 is more negative ("extended file
attributes (property list), including the
access control list (ACL), if any, are not
copied."):
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN1/0306____.HTM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 04:35 AM
тАО10-21-2010 04:35 AM
Re: Maintaining file ownership with scp and rcp
Hi:
The behavior you cite is expected. As Steven noted, one way to maintain both permissions and ownership ( the UID an GID ) is to copy a tar archive.
Regards!
...JRF...
The behavior you cite is expected. As Steven noted, one way to maintain both permissions and ownership ( the UID an GID ) is to copy a tar archive.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 04:53 AM
тАО10-21-2010 04:53 AM
Re: Maintaining file ownership with scp and rcp
I stand corrected. I was wrong. I went back to an old Tru64 system where I thought the UID and GID were maintained, ran an scp and rcp and they were not carried.
Oh, well. Ring this up to an overanxious imagination.
Thanks to all.
Oh, well. Ring this up to an overanxious imagination.
Thanks to all.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP