<?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: Copy NIS home directories to different server while preserving permissions. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080818#M440433</link>
    <description>I would have thought cp -p would work.  Are you root on the machine?  And if the new home directories are on NFS, are you root there too?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: throwing some compression and&lt;BR /&gt;expansion (say, gzip) into the pipeline could&lt;BR /&gt;pay.&lt;BR /&gt;&lt;BR /&gt;I don't see any remsh, so where would gzip help?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;NIS doesn't really matter here, does it?&lt;BR /&gt;&lt;BR /&gt;Perhaps James meant NFS?</description>
    <pubDate>Wed, 21 Nov 2007 18:48:59 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-11-21T18:48:59Z</dc:date>
    <item>
      <title>Copy NIS home directories to different server while preserving permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080816#M440431</link>
      <description>Hello,&lt;BR /&gt;I am trying to copy NIS home directories from one server to another. I am taking the box down and need to move the directories somewhere else.&lt;BR /&gt;I have tried cp -pr /source /mnt/destination.&lt;BR /&gt;That does not preserve permissions.&lt;BR /&gt;I have tried &lt;BR /&gt;tar -cpf - input | (cd /dest; tar -xpf -)&lt;BR /&gt;Is there a better way than this that someone can please suggest.&lt;BR /&gt;I have to move about 150 directories.&lt;BR /&gt;Thank you&lt;BR /&gt;James</description>
      <pubDate>Wed, 21 Nov 2007 17:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080816#M440431</guid>
      <dc:creator>TechC</dc:creator>
      <dc:date>2007-11-21T17:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy NIS home directories to different server while preserving permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080817#M440432</link>
      <description>&amp;gt; I have tried cp -pr [...]&lt;BR /&gt;&lt;BR /&gt;"cp"?  Ptui.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have tried &lt;BR /&gt;&amp;gt; tar [...]&lt;BR /&gt;&lt;BR /&gt;And did it work?&lt;BR /&gt;&lt;BR /&gt;That's the way I'd probably do it, but from&lt;BR /&gt;HP-UX to HP-UX, a similar fbackup - frecover&lt;BR /&gt;pipeline might have some advantage.&lt;BR /&gt;&lt;BR /&gt;"man tar" suggests that the first "p" (the&lt;BR /&gt;one with "c") may have no effect.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have to move about 150 directories.&lt;BR /&gt;&lt;BR /&gt;Moving many bits can take a while, no matter&lt;BR /&gt;how you do it.  If you have fast CPUs and a&lt;BR /&gt;slow network, throwing some compression and&lt;BR /&gt;expansion (say, gzip) into the pipeline could&lt;BR /&gt;pay.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NIS doesn't really matter here, does it?</description>
      <pubDate>Wed, 21 Nov 2007 18:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080817#M440432</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-21T18:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy NIS home directories to different server while preserving permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080818#M440433</link>
      <description>I would have thought cp -p would work.  Are you root on the machine?  And if the new home directories are on NFS, are you root there too?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: throwing some compression and&lt;BR /&gt;expansion (say, gzip) into the pipeline could&lt;BR /&gt;pay.&lt;BR /&gt;&lt;BR /&gt;I don't see any remsh, so where would gzip help?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;NIS doesn't really matter here, does it?&lt;BR /&gt;&lt;BR /&gt;Perhaps James meant NFS?</description>
      <pubDate>Wed, 21 Nov 2007 18:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080818#M440433</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-21T18:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy NIS home directories to different server while preserving permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080819#M440434</link>
      <description>Gentlemen, Thanks for the response.&lt;BR /&gt;What I meant was that I tried cp -pr from the source( an HPUX 10.20 box with NIS user home directories exported through NFS)&lt;BR /&gt;to a network appliance, did not work. Permissions are set to the nobody user..&lt;BR /&gt;I have root access on both..so then I tried from inside a home dir&lt;BR /&gt;tar -cf - . | (cd /destination ; tar -xf -)&lt;BR /&gt;to a destination homedir owned by the same user. The files are nobody(65344) owned still.&lt;BR /&gt;and I tried from inside source homedir again.&lt;BR /&gt;find . | cpio -pudlmv /destination home dir&lt;BR /&gt;The permissions are set to nobody or 65344 after the copy or tar or cpio function.&lt;BR /&gt;Could it be that it is a network appliance as the destination?&lt;BR /&gt;Should I be using what you posted as &lt;BR /&gt;cp"? Ptui&lt;BR /&gt;Thanks&lt;BR /&gt;James</description>
      <pubDate>Wed, 21 Nov 2007 19:20:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080819#M440434</guid>
      <dc:creator>TechC</dc:creator>
      <dc:date>2007-11-21T19:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Copy NIS home directories to different server while preserving permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080820#M440435</link>
      <description>&amp;gt;Permissions are set to the nobody user.  I have root access on both.&lt;BR /&gt;&lt;BR /&gt;That's why I asked.  You have root as nobody access, less than a normal user.&lt;BR /&gt;&lt;BR /&gt;Since you have root on the network appliance, you need to export root as root.  (Then change it back.)&lt;BR /&gt;See the following exportfs(1m), root=hostname[:hostname]...:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60103/exportfs.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60103/exportfs.1M.html&lt;/A&gt;&lt;BR /&gt;(I have no idea how your network appliance exports, you may have a fancy GUI?)&lt;BR /&gt;&lt;BR /&gt;Note: If you can't figure this out, you can always copy a tarfile over then untar it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;tar -cf - . | (cd /destination ; tar -xf -)&lt;BR /&gt;&lt;BR /&gt;You can simplify this by using:&lt;BR /&gt;$ cd /destination&lt;BR /&gt;$ tar -cf - -C source . | tar -xf -&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Nov 2007 20:50:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080820#M440435</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-21T20:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copy NIS home directories to different server while preserving permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080821#M440436</link>
      <description>Something strange in what you're asking.  If you have a network appliance and NIS, why aren't your home directories already there?&lt;BR /&gt;(Or is that what you are doing?)&lt;BR /&gt;&lt;BR /&gt;My home directory is like that.</description>
      <pubDate>Wed, 21 Nov 2007 20:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080821#M440436</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-21T20:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Copy NIS home directories to different server while preserving permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080822#M440437</link>
      <description>Bingo Dennis, I exported the volume I needed to copy to with root access to the source (old NIS master server) and it works like a charm...Man I should have caught that. I guess I figured since the folder was wide open it would be OK. Better study up on my NFS.&lt;BR /&gt;The netapp is relatively new so that is why I am putting the home directories there now. Gonna retire this 10.20 box. I am also moving the NIS services to a different box but before I do so I wanted to have all the home dirs off.&lt;BR /&gt;Thanks again for the advice on pre turkey day.&lt;BR /&gt;I sure do appreciate it.&lt;BR /&gt;James</description>
      <pubDate>Thu, 22 Nov 2007 00:15:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080822#M440437</guid>
      <dc:creator>TechC</dc:creator>
      <dc:date>2007-11-22T00:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Copy NIS home directories to different server while preserving permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080823#M440438</link>
      <description>Dennis' answer did the trick..Root over NFS is nothing. Someone made that clear to me in the past..I guess I did not listen.&lt;BR /&gt;Anyhow Thanks Dennis.</description>
      <pubDate>Thu, 22 Nov 2007 00:21:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-nis-home-directories-to-different-server-while-preserving/m-p/5080823#M440438</guid>
      <dc:creator>TechC</dc:creator>
      <dc:date>2007-11-22T00:21:23Z</dc:date>
    </item>
  </channel>
</rss>

