<?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: transfer user in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956352#M4382</link>
    <description>I'm not much familiare with HP UX, but do you have some kind of /etc/password and /etc/shadow ? If it is the case, you could cp them to your Lnx Box...</description>
    <pubDate>Tue, 22 Apr 2003 13:27:46 GMT</pubDate>
    <dc:creator>Jerome Henry</dc:creator>
    <dc:date>2003-04-22T13:27:46Z</dc:date>
    <item>
      <title>transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956351#M4381</link>
      <description>We will change my HP UX 10.2 to linux , how can I move the UX users to linux instead of re-creating all the users again ? thx</description>
      <pubDate>Tue, 22 Apr 2003 12:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956351#M4381</guid>
      <dc:creator>Juno</dc:creator>
      <dc:date>2003-04-22T12:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956352#M4382</link>
      <description>I'm not much familiare with HP UX, but do you have some kind of /etc/password and /etc/shadow ? If it is the case, you could cp them to your Lnx Box...</description>
      <pubDate>Tue, 22 Apr 2003 13:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956352#M4382</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-04-22T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956353#M4383</link>
      <description>Hi, &lt;BR /&gt;You can extract from /etc/passwd the users you need to create, and apply a script to create those users automatically (try with useradd command), the only thing i don't know how can you make it automatically is to assign the old passwords to the new users in linux.&lt;BR /&gt;&lt;BR /&gt;Frank</description>
      <pubDate>Tue, 22 Apr 2003 13:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956353#M4383</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-04-22T13:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956354#M4384</link>
      <description>Yes - copying the /etc/passwd file will allow you to move users over.  You may need to also do at move of the /home/ directories.if you want to back up a list of this and remake them you could do:&lt;BR /&gt;&lt;BR /&gt;ls /home &amp;gt; home.list&lt;BR /&gt;&lt;BR /&gt;and on the new linux box do:&lt;BR /&gt;&lt;BR /&gt;for i in $(cat home.list)&lt;BR /&gt;do&lt;BR /&gt;mkdir -p $i&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Apr 2003 13:34:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956354#M4384</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-04-22T13:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956355#M4385</link>
      <description>is there any command to do that? thx.</description>
      <pubDate>Tue, 22 Apr 2003 23:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956355#M4385</guid>
      <dc:creator>Juno</dc:creator>
      <dc:date>2003-04-22T23:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956356#M4386</link>
      <description>command to do what?  copy the /etc/passwd file?  &lt;BR /&gt;&lt;BR /&gt;just open an ftp session to your new Linux server and put the /etc/passwd file in your home directory. telnet to the linux box and then just quickly vi (the prefered unix text editor) the file and remove all but the user accounts.  save the file and then &lt;BR /&gt;su to root and&lt;BR /&gt;cat passwd &amp;gt;&amp;gt; /etc/passwd</description>
      <pubDate>Wed, 23 Apr 2003 10:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956356#M4386</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-04-23T10:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956357#M4387</link>
      <description>Hi, Juno, I've tried the following with HP-UX 10.20 and RedHat 7.1, and works fine.&lt;BR /&gt;&lt;BR /&gt;1.- In the HP-UX,:&lt;BR /&gt;   cut -d: -f1,2 /etc/passwd &amp;gt; /tmp/users.txt&lt;BR /&gt;&lt;BR /&gt;2.- Edit /tmp/users.txt file and  keep only the lines which user names you want to transfer to linux.&lt;BR /&gt;&lt;BR /&gt;3.- Copy this modified file to the linux box.&lt;BR /&gt;&lt;BR /&gt;4.- Create the following script:&lt;BR /&gt;# Begin script&lt;BR /&gt;#!/bin/sh&lt;BR /&gt; awk -F: '{&lt;BR /&gt;   c=sprintf("echo \"/usr/sbin/useradd -p %s %s\"",$2,$1)&lt;BR /&gt;   system(c)&lt;BR /&gt;   c=sprintf("/usr/sbin/useradd -p %s %s",$2,$1)&lt;BR /&gt;   system(c)&lt;BR /&gt;&lt;BR /&gt;}' /path_to_users.txt&lt;BR /&gt;&lt;BR /&gt;# End script&lt;BR /&gt;&lt;BR /&gt;Be careful with the quotation marks.&lt;BR /&gt;&lt;BR /&gt;5.- Execute the script.&lt;BR /&gt;&lt;BR /&gt;You create the HP-UX users into linux box with the same passwords.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Frank.</description>
      <pubDate>Wed, 23 Apr 2003 14:30:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956357#M4387</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-04-23T14:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956358#M4388</link>
      <description>im currently trying to import users from my redhat 8.0 to redhat es v2.1 .&lt;BR /&gt;&lt;BR /&gt;i tried the script but it seems it created the user but not the password for the user ,  is there a way to maintain the password of the users ? &lt;BR /&gt;&lt;BR /&gt;if not is there a way to assign the same password to all the imported uses</description>
      <pubDate>Fri, 25 Apr 2003 07:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956358#M4388</guid>
      <dc:creator>Steven Lee_11</dc:creator>
      <dc:date>2003-04-25T07:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956359#M4389</link>
      <description>my system is using MD5 on passwd . is there a way to make it work</description>
      <pubDate>Fri, 25 Apr 2003 09:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956359#M4389</guid>
      <dc:creator>Steven Lee_11</dc:creator>
      <dc:date>2003-04-25T09:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956360#M4390</link>
      <description>The problem with the script is that you are using shadow passwords, so the first cut command does not import the password correctly, you must do the same thing with the file /etc/shadow instead of /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Fri, 25 Apr 2003 10:38:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956360#M4390</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-04-25T10:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956361#M4391</link>
      <description>i have run the pwconv to make the passwd file like the normal passwd file u find on unix.&lt;BR /&gt;&lt;BR /&gt;so the password field is there but cant add it to the new system.</description>
      <pubDate>Tue, 29 Apr 2003 06:02:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956361#M4391</guid>
      <dc:creator>Steven Lee_11</dc:creator>
      <dc:date>2003-04-29T06:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956362#M4392</link>
      <description>Hi Steven, in which step are you in trouble?&lt;BR /&gt;&lt;BR /&gt;Frank</description>
      <pubDate>Tue, 29 Apr 2003 06:48:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956362#M4392</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-04-29T06:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956363#M4393</link>
      <description>managed to add users sucessfully , but not the password.</description>
      <pubDate>Tue, 29 Apr 2003 07:05:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956363#M4393</guid>
      <dc:creator>Steven Lee_11</dc:creator>
      <dc:date>2003-04-29T07:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: transfer user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956364#M4394</link>
      <description>You'll need the relavent entries in the /etc/passwd file and the /etc/group file.&lt;BR /&gt;&lt;BR /&gt;You'll need to check and see if the same number of columns. &lt;BR /&gt;&lt;BR /&gt;You will need to eliminate them.&lt;BR /&gt;&lt;BR /&gt;I have gotten away with this linux to linux but not hp-ux to linux.&lt;BR /&gt;&lt;BR /&gt;You may need to reset the passwords on those users after the transfer.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 30 Apr 2003 01:25:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/transfer-user/m-p/2956364#M4394</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-04-30T01:25:22Z</dc:date>
    </item>
  </channel>
</rss>

