<?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: Coping user to new Computer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578034#M885033</link>
    <description>Hello,&lt;BR /&gt;YOu can cp the passwd and group file.&lt;BR /&gt;Then you can do a&lt;BR /&gt;#rcp -rp &lt;OLDSERVERNAME&gt;:/home/* /home/&lt;BR /&gt;&lt;BR /&gt;I am assuming that your user directories are under /home filesystem.&lt;BR /&gt;before you do that make sure that you have a entry in your /.rhosts file of the old server.&lt;BR /&gt;#vi /.rhosts&lt;BR /&gt;newserveripaddress    root&lt;BR /&gt;&lt;BR /&gt;wq!&lt;BR /&gt;&lt;/OLDSERVERNAME&gt;</description>
    <pubDate>Mon, 19 Nov 2001 03:49:51 GMT</pubDate>
    <dc:creator>T G Manikandan</dc:creator>
    <dc:date>2001-11-19T03:49:51Z</dc:date>
    <item>
      <title>Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578025#M885024</link>
      <description>We are replacing our HP 9000/K220 HP-UX 10.20 with a HP 9000 "N" Class with HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;When I go to put the users from the Old box to New box is there an easier way than righting a script to recreate the users. The script would do the same thing we do now when we create just one user. The difference it that I already have there names and other information.&lt;BR /&gt;&lt;BR /&gt;Some one told me I could just copy the /etc/passwd and /etc/group files then copy the Users home Directory. In this case I would still have deal with users rights to there home Directory. The Users do not need any of the data in as their directories as they are captive users and it is only passive information.&lt;BR /&gt;&lt;BR /&gt;What you thing?&lt;BR /&gt;Marty&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2001 15:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578025#M885024</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2001-09-11T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578026#M885025</link>
      <description>Hi,&lt;BR /&gt;Copying passwd and group file and users home directories will work - and you will not have to deal with permissions if done properly - at the condition you are not on a trusted box...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 11 Sep 2001 16:04:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578026#M885025</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-09-11T16:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578027#M885026</link>
      <description>Marty,&lt;BR /&gt;&lt;BR /&gt;You can do it in different ways. You can even complicate by writing some scripts and incorporating adduser in it.&lt;BR /&gt;&lt;BR /&gt;The best way is as follows. Copy the password and group files as a whole into N-4000.&lt;BR /&gt;&lt;BR /&gt;on N-4000&lt;BR /&gt;&lt;BR /&gt;#cp /etc/passwd /etc/passwd.orig&lt;BR /&gt;#vi passwd.k420&lt;BR /&gt;Remove all the default entries. Or the&lt;BR /&gt;entries that match the passwd file of N4000.&lt;BR /&gt;Once they are made sure and removed, save the file&lt;BR /&gt;#cat passwd.k420&amp;gt;&amp;gt; /etc/passwd&lt;BR /&gt;Do the same thing for group file.&lt;BR /&gt;&lt;BR /&gt;Now take the saved passwd.k420 file and do this&lt;BR /&gt;&lt;BR /&gt;awk '{FS=":";print $1}' passwd.k420 &amp;gt; user.list&lt;BR /&gt;&lt;BR /&gt;Copy this list to K420&lt;BR /&gt;on K420 do&lt;BR /&gt;#for USER in user.list&lt;BR /&gt;&amp;gt;do&lt;BR /&gt;&amp;gt;grep "^$USER" /etc/passwd |awk '{FS=":":print $6}' &amp;gt;&amp;gt; home.list&lt;BR /&gt;&amp;gt;done&lt;BR /&gt;&lt;BR /&gt;#tar cvf /tmp/home.tar `cat home.list`&lt;BR /&gt;Copy /tmp/home.tar into your N-4000 and untar&lt;BR /&gt;on N-4000&lt;BR /&gt;#tar xvf home.tar&lt;BR /&gt;&lt;BR /&gt;This should copy the home directories.&lt;BR /&gt;&lt;BR /&gt;Now your users can login as it it was the old K420.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2001 16:19:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578027#M885026</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-11T16:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578028#M885027</link>
      <description>Marty,&lt;BR /&gt;&lt;BR /&gt;You can do it in different ways. You can even complicate by writing some scripts and incorporating adduser in it.&lt;BR /&gt;&lt;BR /&gt;The best way is as follows. Copy the password and group files as a whole into N-4000.&lt;BR /&gt;&lt;BR /&gt;on N-4000&lt;BR /&gt;&lt;BR /&gt;#cp /etc/passwd /etc/passwd.orig&lt;BR /&gt;#vi passwd.k420&lt;BR /&gt;Remove all the default entries. Or the&lt;BR /&gt;entries that match the passwd file of N4000.&lt;BR /&gt;Once they are made sure and removed, save the file&lt;BR /&gt;#cat passwd.k420&amp;gt;&amp;gt; /etc/passwd&lt;BR /&gt;Do the same thing for group file.&lt;BR /&gt;&lt;BR /&gt;Now take the saved passwd.k420 file and do this&lt;BR /&gt;&lt;BR /&gt;awk '{FS=":";print $1}' passwd.k420 &amp;gt; user.list&lt;BR /&gt;&lt;BR /&gt;Copy this list to K420&lt;BR /&gt;on K420 do&lt;BR /&gt;#for USER in user.list&lt;BR /&gt;&amp;gt;do&lt;BR /&gt;&amp;gt;grep "^$USER" /etc/passwd |awk '{FS=":":print $6}' &amp;gt;&amp;gt; home.list&lt;BR /&gt;&amp;gt;done&lt;BR /&gt;&lt;BR /&gt;#tar cvf /tmp/home.tar `cat home.list`&lt;BR /&gt;Copy /tmp/home.tar into your N-4000 and untar&lt;BR /&gt;on N-4000&lt;BR /&gt;#tar xvf home.tar&lt;BR /&gt;&lt;BR /&gt;This should copy the home directories.&lt;BR /&gt;&lt;BR /&gt;Now your users can login as if it was the old K420.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2001 16:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578028#M885027</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-11T16:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578029#M885028</link>
      <description>Victor,&lt;BR /&gt;The box isn't Trusted. Well not yet.&lt;BR /&gt;If I edit the Old passwd and group file then append them to the new box files that should give me the old users/groups on the new box?&lt;BR /&gt;&lt;BR /&gt;How do I get the rights for the users directories?&lt;BR /&gt;If I put them on tape and move them will the rights on the directories/files go with them?&lt;BR /&gt;&lt;BR /&gt;What I think I'm asking is the userID has a UID. Are the rights attached to the UID or the UserID(name)?&lt;BR /&gt;&lt;BR /&gt;If I ftp this data from one box to the other how does the Right happen for the User's Directories?&lt;BR /&gt;&lt;BR /&gt;Am I tring to make the harder than it is?&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 11 Sep 2001 17:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578029#M885028</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2001-09-11T17:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578030#M885029</link>
      <description>Marty,&lt;BR /&gt;&lt;BR /&gt;Sorry for answering the question on behalf of victor.&lt;BR /&gt;&lt;BR /&gt;The permissions will not change if you untar the home directories and will be set accordingly. As long as you don't change the uids, the permissions will remain intact. If you change the uids in the password files, then the files owned by the corresponding user will be owned by the previous uid number. That is the reason why we just need to append the password files.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 11 Sep 2001 17:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578030#M885029</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-11T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578031#M885030</link>
      <description>Marty,&lt;BR /&gt;&lt;BR /&gt;Most archiving utility have an option to preserve the permissions and timestamp of files in the archive.  For tar, the options is -p.  This option is a default for superuser.&lt;BR /&gt;So when you create and when you restore the user's home file and if you're using tar, use the -p option.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Tue, 11 Sep 2001 17:17:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578031#M885030</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-11T17:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578032#M885031</link>
      <description>Marty,&lt;BR /&gt;&lt;BR /&gt;   My approach many not be as fancy as some, but it works for me, so here goes.  FTP the /etc/passwd and /etc/group files to the new server but do not place them into /etc.  For this example we will say that you put them into slash[/].  Run vi on /passwd and remove the second columns data(encrypted password) and replace it with a asterisk(*).  This will disable all of the accounts.  Then save the file.  Then copy /etc/passwd to /etc/passwd.orig and copy both the /passwd and /group into /etc.  Then at the command line run 'passwd' as root to change the root password.  Think of a default password that you can assign for each user, and then execute 'passwd' for any one user (eg. passwd gwells).  Then go into the /etc/passwd file and find the user who's passwd you set to the default.  You will then want to copy the second column of data(encrypted passwd) from that user(eg XjrZs15A1K42) Then paste that data into the second column of all of your users(not into the special accounts obviously).  Doing this should set the passwd for all of your users to the same thing.  Then you just email them all to let them know that they can login to the new server with the default passwd and that they need to change their password upon login.  Then just keep the string written onto a piece of paper so that you can check back after a while to see who has changed their passwords.  Well, I hope that helps.  &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jason V.</description>
      <pubDate>Sun, 18 Nov 2001 11:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578032#M885031</guid>
      <dc:creator>Jason VanDerMark</dc:creator>
      <dc:date>2001-11-18T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578033#M885032</link>
      <description>Marty,&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;IF i="" edit="" the="" old="" passwd="" and="" group="" file="" then="" append="" them="" to="" the="" new="" box="" files="" that="" should="" give="" me="" the="" old="" users=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;   Yes.  When you install the O/S on the New system, default system accounts are created in the password and group file.  Except these accounts , you would need to append all the accounts from your old system.&lt;BR /&gt;for eg: if your old password file and group file is&lt;BR /&gt;  /etc/password.OLD&lt;BR /&gt;  /etc/group.OLD&lt;BR /&gt;&lt;BR /&gt;Edit these two files and remove any entry&lt;BR /&gt;which is already there in the new systems&lt;BR /&gt;/etc/passwd and /etc/group file.&lt;BR /&gt;Then, you just append these files.&lt;BR /&gt; &lt;BR /&gt;&amp;lt;&lt;HOW do="" i="" get="" the="" rights="" for="" the="" users="" directories=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  Restoring the directories will take care&lt;BR /&gt;of this.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;IF i="" put="" them="" on="" tape="" and="" move="" them="" will="" the="" rights="" on="" the="" directories=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Yes!&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;WHAT i="" think="" i=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;    The rights are attached to the userid.&lt;BR /&gt;If you restore the files without creating/copying the user accounts to the new system, the files will have the UID number as the ownership .   &lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;IF i="" ftp="" this="" data="https://community.hpe.com/" from="" one="" box="" to="" the="" other="" how="" does="" the="" right="" happen="" for="" the="" user=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  FTP is not a good idea, since it doesn't preserve the old permission or ownerships.&lt;BR /&gt;You would need to do them manually after FTPing the file. Whereas if you restore, it will be automaticaally be taken care of.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj &lt;BR /&gt;&lt;/IF&gt;&lt;/WHAT&gt;&lt;/IF&gt;&lt;/HOW&gt;&lt;/IF&gt;</description>
      <pubDate>Sun, 18 Nov 2001 13:01:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578033#M885032</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-11-18T13:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Coping user to new Computer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578034#M885033</link>
      <description>Hello,&lt;BR /&gt;YOu can cp the passwd and group file.&lt;BR /&gt;Then you can do a&lt;BR /&gt;#rcp -rp &lt;OLDSERVERNAME&gt;:/home/* /home/&lt;BR /&gt;&lt;BR /&gt;I am assuming that your user directories are under /home filesystem.&lt;BR /&gt;before you do that make sure that you have a entry in your /.rhosts file of the old server.&lt;BR /&gt;#vi /.rhosts&lt;BR /&gt;newserveripaddress    root&lt;BR /&gt;&lt;BR /&gt;wq!&lt;BR /&gt;&lt;/OLDSERVERNAME&gt;</description>
      <pubDate>Mon, 19 Nov 2001 03:49:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/coping-user-to-new-computer/m-p/2578034#M885033</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2001-11-19T03:49:51Z</dc:date>
    </item>
  </channel>
</rss>

