<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SCP Copy problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569516#M372489</link>
    <description>But here we use switches as -p -r to copy with same permission and subdirectories. Why do we need to copy as the user who have the onwership of the files/dir. Can someone explain me this well</description>
    <pubDate>Sat, 23 Jan 2010 11:32:35 GMT</pubDate>
    <dc:creator>AVV</dc:creator>
    <dc:date>2010-01-23T11:32:35Z</dc:date>
    <item>
      <title>SCP Copy problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569511#M372484</link>
      <description>Hi mates,&lt;BR /&gt;I have a problem making a copy from a Linux server to an HP-UX server, the copy I'm doing with the scp command with the-r and -p options, but then generated the copy and review on the HP-UX server the copy is made perfectly even with the same permissions, but the owner permissions of the folders and files change the ownership to root.&lt;BR /&gt;&lt;BR /&gt;Anybody can help Me??&lt;BR /&gt;&lt;BR /&gt;Thanks guys</description>
      <pubDate>Fri, 22 Jan 2010 14:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569511#M372484</guid>
      <dc:creator>VICBUR1507</dc:creator>
      <dc:date>2010-01-22T14:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: SCP Copy problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569512#M372485</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This is standard behavior.  You could create an empty file on the receiving server and establish its appropriate ownership.  Then, perform your 'scp -p' transfer.  Now the permissions, timestamps and ownership will be preserved.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 22 Jan 2010 15:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569512#M372485</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-01-22T15:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: SCP Copy problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569513#M372486</link>
      <description>That is the way it is, because you do your scp in root account. &lt;BR /&gt;&lt;BR /&gt;You can login as the file owner to do the scp and it keeps the original ownership.</description>
      <pubDate>Fri, 22 Jan 2010 15:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569513#M372486</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2010-01-22T15:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: SCP Copy problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569514#M372487</link>
      <description>When you use scp, the full specification of the destination filename is user@host:/path. If you leave off the user then the remote file will be owned by the user sending the file. If you login as root, then send the file to the remote system like this:&lt;BR /&gt; &lt;BR /&gt;scp -rp /tmp/mydir billh@system2:/tmp&lt;BR /&gt; &lt;BR /&gt;Then the directory (and files) will be owned by billh. For a password free copy, you'll have to setup the public key for the user billh.</description>
      <pubDate>Fri, 22 Jan 2010 20:10:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569514#M372487</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-01-22T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: SCP Copy problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569515#M372488</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] a Linux server [...]&lt;BR /&gt;&lt;BR /&gt;Not a very complete description of the OS&lt;BR /&gt;or the SSH software on this system.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] an HP-UX server [...]&lt;BR /&gt;&lt;BR /&gt;Not a very complete description of the OS&lt;BR /&gt;or the SSH software on this system.&lt;BR /&gt;&lt;BR /&gt;Around here:&lt;BR /&gt;&lt;BR /&gt;dyi # uname -a&lt;BR /&gt;HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;dyi # ssh -V&lt;BR /&gt;OpenSSH_5.2p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8k 25 Mar 2009&lt;BR /&gt;HP-UX Secure Shell-A.05.20.015, HP-UX Secure Shell version&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; dyi # man scp&lt;BR /&gt;[...]&lt;BR /&gt;      -p   Preserves modification times, access times, and modes from the&lt;BR /&gt;           original file.&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;Nothing there about owner/group.  And not&lt;BR /&gt;without good reason.&lt;BR /&gt;&lt;BR /&gt;Preserving ownership between different&lt;BR /&gt;systems can be difficult, especially when a&lt;BR /&gt;user exists on one system but not on the&lt;BR /&gt;other.  It can also cause problems, when, for&lt;BR /&gt;example, a particular UID number translates&lt;BR /&gt;to different users on the different systems.&lt;BR /&gt;&lt;BR /&gt;If you _really_ do wish to preserve the&lt;BR /&gt;UID/GID values, then you may be able to do&lt;BR /&gt;better using "tar".  It should be possible to&lt;BR /&gt;string together a "tar" pipeline using ssh&lt;BR /&gt;(not quite scp, but close) for the remote&lt;BR /&gt;half.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] with the-r and -p options [...]&lt;BR /&gt;&lt;BR /&gt;&amp;gt; You could create an empty file [...]&lt;BR /&gt;&lt;BR /&gt;Uh, _many_ empty files?  Even if it works, it&lt;BR /&gt;sounds impractical.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; You can login as the file owner to do the&lt;BR /&gt;&amp;gt; scp and it keeps the original ownership.&lt;BR /&gt;&lt;BR /&gt;Because all the files are certain to have the&lt;BR /&gt;same owner (and group)?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Providing a clear description of the problem&lt;BR /&gt;to be solved can reduce (but probably not&lt;BR /&gt;eliminate) the suggestions which don't really&lt;BR /&gt;apply to the actual situation.</description>
      <pubDate>Fri, 22 Jan 2010 20:11:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569515#M372488</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-22T20:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: SCP Copy problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569516#M372489</link>
      <description>But here we use switches as -p -r to copy with same permission and subdirectories. Why do we need to copy as the user who have the onwership of the files/dir. Can someone explain me this well</description>
      <pubDate>Sat, 23 Jan 2010 11:32:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569516#M372489</guid>
      <dc:creator>AVV</dc:creator>
      <dc:date>2010-01-23T11:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: SCP Copy problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569517#M372490</link>
      <description>&lt;!--!*#--&gt;&amp;gt; But here we use switches as -p -r to copy&lt;BR /&gt;&amp;gt; with same permission and subdirectories.&lt;BR /&gt;&lt;BR /&gt;Ok.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Why do we need to copy as the user who have&lt;BR /&gt;&amp;gt; the onwership of the files/dir.&lt;BR /&gt;&lt;BR /&gt;You don't need to, if you don't care who owns&lt;BR /&gt;the files at the destination.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] Can someone explain me this well&lt;BR /&gt;&lt;BR /&gt;Again?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Nothing there about owner/group.  [...]</description>
      <pubDate>Sat, 23 Jan 2010 11:50:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569517#M372490</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-01-23T11:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: SCP Copy problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569518#M372491</link>
      <description>Try to use tar over ssh like that:&lt;BR /&gt;&lt;BR /&gt;cd source_dir; tar cf - dirs_and_files | ssh root@target "cd destin_dir; tar xf - "&lt;BR /&gt;&lt;BR /&gt;Tar stores ownership and permissions if executed as root.&lt;BR /&gt;Or you can use rsync, which is perfect for the purpose.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sun, 24 Jan 2010 11:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-copy-problem/m-p/4569518#M372491</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2010-01-24T11:32:04Z</dc:date>
    </item>
  </channel>
</rss>

