<?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 scp to remote server, and keep the ownership and permission the same in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294118#M182702</link>
    <description>If I run scp as root, and these files will be owned by root when they are copied over to the remote host.&lt;BR /&gt;&lt;BR /&gt;I wanted to keep the same ownership as they were on local system. &lt;BR /&gt;&lt;BR /&gt;I tried -p option, and it did not work either.&lt;BR /&gt;&lt;BR /&gt;Any idea?</description>
    <pubDate>Wed, 02 Jun 2004 13:41:04 GMT</pubDate>
    <dc:creator>Hanry Zhou</dc:creator>
    <dc:date>2004-06-02T13:41:04Z</dc:date>
    <item>
      <title>scp to remote server, and keep the ownership and permission the same</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294118#M182702</link>
      <description>If I run scp as root, and these files will be owned by root when they are copied over to the remote host.&lt;BR /&gt;&lt;BR /&gt;I wanted to keep the same ownership as they were on local system. &lt;BR /&gt;&lt;BR /&gt;I tried -p option, and it did not work either.&lt;BR /&gt;&lt;BR /&gt;Any idea?</description>
      <pubDate>Wed, 02 Jun 2004 13:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294118#M182702</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-06-02T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: scp to remote server, and keep the ownership and permission the same</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294119#M182703</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i would use ssh to do a tar ( remote), copy that file and extract localy.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Wed, 02 Jun 2004 13:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294119#M182703</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-06-02T13:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: scp to remote server, and keep the ownership and permission the same</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294120#M182704</link>
      <description>Try scp file remoteuser@remoteserver:/destfile.&lt;BR /&gt;&lt;BR /&gt;Of course, ff you have files owned by different users this becomes awkward.&lt;BR /&gt; &lt;BR /&gt;JP.</description>
      <pubDate>Wed, 02 Jun 2004 13:51:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294120#M182704</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-06-02T13:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: scp to remote server, and keep the ownership and permission the same</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294121#M182705</link>
      <description>Set up the user for password free scp&lt;BR /&gt;&lt;BR /&gt;then as the user use scp -p&lt;BR /&gt;&lt;BR /&gt;that will work.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 02 Jun 2004 13:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294121#M182705</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-02T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: scp to remote server, and keep the ownership and permission the same</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294122#M182706</link>
      <description>No, scp wo't kep the ownership even if copied with -p option. The reason why the file ownership is being changed to root is because the ownership of the file is determined by the user who is doing SSH authentication. As long as you are using root or a different user top copy, scp will change the ownership to that user(remote user). &lt;BR /&gt;&lt;BR /&gt;Your solution would be,&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;2. If you want to copy a dir.structure, use the tar | ssh command as follows,&lt;BR /&gt;tar cpf - dir | (ssh remote_Server "cd remote_dir; tar xpf -")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Abdul.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jun 2004 14:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294122#M182706</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-06-02T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: scp to remote server, and keep the ownership and permission the same</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294123#M182707</link>
      <description>One thing to consider is the method in which scp utilizes preserving permissions and ownership. The preservation method of file ownership with scp is based on inode entries, not user names in /etc/passwd. So, if you "scp -p" a file owned by user MickyMouse with a uid of 100 to another server, that file on the destination server will be owned by uid 100. However, uid 100 on the destination server may very well map to DonaldDuck instead of MickeyMouse. Solution is to use something like NIS, or manual methods to keep all you uid/gid's in sync..&lt;BR /&gt;&lt;BR /&gt;2 cents from the peanut gallery.</description>
      <pubDate>Wed, 02 Jun 2004 14:18:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294123#M182707</guid>
      <dc:creator>Michael Denney</dc:creator>
      <dc:date>2004-06-02T14:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: scp to remote server, and keep the ownership and permission the same</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294124#M182708</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;The user account and id number are consistency on both remote and local servers.</description>
      <pubDate>Wed, 02 Jun 2004 14:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294124#M182708</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-06-02T14:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: scp to remote server, and keep the ownership and permission the same</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294125#M182709</link>
      <description>Either you will have to genearate ssh key for that perticualr user who owned the file or run chown command after every scp to modify owner informations. &lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Wed, 02 Jun 2004 14:30:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-to-remote-server-and-keep-the-ownership-and-permission-the/m-p/3294125#M182709</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2004-06-02T14:30:06Z</dc:date>
    </item>
  </channel>
</rss>

