<?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: Remote copy in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833335#M89447</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you might try this too&lt;BR /&gt;&lt;BR /&gt;tar -cf - *.gz | remsh snoopy "(cd /otherdirectory ; tar -xf - )" &lt;BR /&gt;&lt;BR /&gt;where snoopy is the destination host&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But the UID and GUIDs of both systems have to be identical as already mentioned ...&lt;BR /&gt;&lt;BR /&gt;Christian</description>
    <pubDate>Mon, 28 Oct 2002 15:14:49 GMT</pubDate>
    <dc:creator>Christian Schulze</dc:creator>
    <dc:date>2002-10-28T15:14:49Z</dc:date>
    <item>
      <title>Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833327#M89439</link>
      <description>How can i copy file to remote hosts and preserve the owner UNchanged? Thx.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Oct 2002 08:50:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833327#M89439</guid>
      <dc:creator>O'lnes</dc:creator>
      <dc:date>2002-10-25T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833328#M89440</link>
      <description>i tried 'rcp -p' is not work.&lt;BR /&gt;can suggest other method?</description>
      <pubDate>Fri, 25 Oct 2002 08:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833328#M89440</guid>
      <dc:creator>O'lnes</dc:creator>
      <dc:date>2002-10-25T08:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833329#M89441</link>
      <description>check for the -p option of rcp.&lt;BR /&gt;&lt;BR /&gt;-p preserve permissions&lt;BR /&gt;&lt;BR /&gt;rcp -rp &lt;SERVER-NAME&gt;:path &lt;LOCAL path=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/LOCAL&gt;&lt;/SERVER-NAME&gt;</description>
      <pubDate>Fri, 25 Oct 2002 08:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833329#M89441</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-25T08:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833330#M89442</link>
      <description>The owner of the received file will always be the owner you rcp *to*.&lt;BR /&gt;&lt;BR /&gt;This is the only way it can work...&lt;BR /&gt;&lt;BR /&gt;eg&lt;BR /&gt;&lt;BR /&gt;$ whoami&lt;BR /&gt;alice&lt;BR /&gt;$ rcp foo wibble:/home/alice/.&lt;BR /&gt;$ rcp bar wibble:/home/alice/. -l bob&lt;BR /&gt;$ ssh alice@wibble&lt;BR /&gt;$ ll -l foo&lt;BR /&gt;... alice ...&lt;BR /&gt;$ ll -l bar&lt;BR /&gt;... bob ...&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;dave&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Oct 2002 08:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833330#M89442</guid>
      <dc:creator>David Lodge</dc:creator>
      <dc:date>2002-10-25T08:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833331#M89443</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;do it with this:&lt;BR /&gt;&lt;BR /&gt;echo FILE |cpio -ocB|remsh HOST "cd PATH;cpio -imdvcB"&lt;BR /&gt;&lt;BR /&gt;Replace:&lt;BR /&gt;FILE=filename to copy&lt;BR /&gt;HOST=destination host name&lt;BR /&gt;PATH=destination full path&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 25 Oct 2002 09:01:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833331#M89443</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-10-25T09:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833332#M89444</link>
      <description>rcp -p will preserve permissions.&lt;BR /&gt;&lt;BR /&gt;After doing a rcp do a ls -l &lt;BR /&gt;&lt;BR /&gt;it will have the same uid and gid of the old machine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think you have misunderstood.&lt;BR /&gt;&lt;BR /&gt;1.If the uid and gid of the rcp-ied file matches the local machine uid and gid it will display that owner on the local machine.&lt;BR /&gt;2.if the uid and gid does not match any user or group in the /etc/passwd and /etc/group file when you do a ls -l it will only display the uid and gid.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;o'lines&lt;BR /&gt;you have a very poor point assignment average.&lt;BR /&gt;Hope you improve your average.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Oct 2002 09:07:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833332#M89444</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-25T09:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833333#M89445</link>
      <description>You can use :&lt;BR /&gt;rcp -p    or&lt;BR /&gt;scp -p&lt;BR /&gt;&lt;BR /&gt;If the uid and gid of the file you copied matches to the uid and gid on the remote machine -it will display the owner &lt;BR /&gt;&lt;BR /&gt;If the uid and gid is not identical to any user  in the /etc/passwd it will only display the uid/gid of the file when you do 'ls -la'.&lt;BR /&gt;&lt;BR /&gt;+++ If uid 210 belongs to user oracle on machineA, and on machineB uid210 belongs to user operator, the file owner on the remote machine will be user operator +++ &lt;BR /&gt;That's why it is useful to keep uids/gids identical on different systems. &lt;BR /&gt;</description>
      <pubDate>Fri, 25 Oct 2002 09:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833333#M89445</guid>
      <dc:creator>Elif Gius</dc:creator>
      <dc:date>2002-10-25T09:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833334#M89446</link>
      <description>After you do a rcp you can do a rcmd to change the permissions to whatever you want them to be.</description>
      <pubDate>Fri, 25 Oct 2002 11:40:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833334#M89446</guid>
      <dc:creator>Ken Hubnik_2</dc:creator>
      <dc:date>2002-10-25T11:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833335#M89447</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you might try this too&lt;BR /&gt;&lt;BR /&gt;tar -cf - *.gz | remsh snoopy "(cd /otherdirectory ; tar -xf - )" &lt;BR /&gt;&lt;BR /&gt;where snoopy is the destination host&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But the UID and GUIDs of both systems have to be identical as already mentioned ...&lt;BR /&gt;&lt;BR /&gt;Christian</description>
      <pubDate>Mon, 28 Oct 2002 15:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833335#M89447</guid>
      <dc:creator>Christian Schulze</dc:creator>
      <dc:date>2002-10-28T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Remote copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833336#M89448</link>
      <description>Assuming you the end host is in the ~/.rhosts file on the first host. You could try the following command on the end host&lt;BR /&gt;rsh first_host 'cd DIRECTORY_YOU_THE FILES_IN;tar cvfp - FILE_NAMES'|tar xvfp -&lt;BR /&gt;&lt;BR /&gt;This definitely works since I use it very often. As others pointed  the UIDS and the GIDS should exist on both machines for the username to appear when you do  a "ls -l". What I also found was, interstingly you cannot retain the sticky bit on the files if it is root owned unless you have root access on the destination machine.&lt;BR /&gt;Regards&lt;BR /&gt;Govind</description>
      <pubDate>Mon, 28 Oct 2002 21:16:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2833336#M89448</guid>
      <dc:creator>Govind</dc:creator>
      <dc:date>2002-10-28T21:16:55Z</dc:date>
    </item>
  </channel>
</rss>

