<?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: Move user profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022274#M130754</link>
    <description>I have used the following procedure for moving user from hpux to linux:&lt;BR /&gt;1. In the HP-UX(if the hpux is not truested): &lt;BR /&gt;cut -d: -f1,2 /etc/passwd &amp;gt; /tmp/hpuxuser.lst &lt;BR /&gt;&lt;BR /&gt;2. Copy hpuxuser.lst to the linux box's /tmp. &lt;BR /&gt;&lt;BR /&gt;3. Create a 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;}' /tmp/hpuxuser.lst&lt;BR /&gt;&lt;BR /&gt;4. run the script. &lt;BR /&gt;</description>
    <pubDate>Mon, 14 Jul 2003 01:43:35 GMT</pubDate>
    <dc:creator>twang</dc:creator>
    <dc:date>2003-07-14T01:43:35Z</dc:date>
    <item>
      <title>Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022270#M130750</link>
      <description>I will change the hp ux server to linux server , what is the best way to move the user profile ( /etc/passwd , /etc/shadow etc ) ? thx.</description>
      <pubDate>Mon, 14 Jul 2003 00:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022270#M130750</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-14T00:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022271#M130751</link>
      <description>If the system is not trusted, then you just move the users contents from the /etc/passwd file. (Remove of course root and other system required accounts) There is no /etc/shadow on a HPUX server even if it is trusted. If your system is trusted, you'll have to untrust it first, as linux does not have a similar file structure. &lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/tsconvert -r (to un-trust a system)&lt;BR /&gt;&lt;BR /&gt;Don't forget to backup user home directories as well if needed. You will find that the ~users/.profile will have different definitions on linux.</description>
      <pubDate>Mon, 14 Jul 2003 00:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022271#M130751</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-07-14T00:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022272#M130752</link>
      <description>The user profile itself in a standard HP-UX installed is in the home directory.&lt;BR /&gt;&lt;BR /&gt;It is a file called .profile&lt;BR /&gt;&lt;BR /&gt;In Linux the file is called&lt;BR /&gt;&lt;BR /&gt;.bash_profile&lt;BR /&gt;&lt;BR /&gt;You can copy the .profile file, rename it and then run tests to make sure everything works as expected.&lt;BR /&gt;&lt;BR /&gt;There are a few other files which I've not seen in HP-UX.&lt;BR /&gt;&lt;BR /&gt;.bash_logout&lt;BR /&gt;&lt;BR /&gt;These are the commands you want to run when the user logs out.  The standard Linux profile has one command, clear&lt;BR /&gt;&lt;BR /&gt;This of course can be enhanced to clean up user processes.&lt;BR /&gt;&lt;BR /&gt;The equivalent of the .sh_history file is .bash_history.  Don't migrate it, it won't be of much help.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 14 Jul 2003 01:03:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022272#M130752</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-14T01:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022273#M130753</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;One way is to extract the fields from /etc/passwd file in HPUX and create those users in linux server. Or alternatevely as Michel said, copy the /etc/passwd /tmp/passwd.dev&lt;BR /&gt;vi /tmp/passwd.dev and cut the top few lines reserved for system i guess till "www" and append this file to the /etc/passwd in linux&lt;BR /&gt;&lt;BR /&gt;Also make sure before you do this the HPUX server should be untrusted otherwise you'll have * in passwd fileds.&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Mon, 14 Jul 2003 01:08:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022273#M130753</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-07-14T01:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022274#M130754</link>
      <description>I have used the following procedure for moving user from hpux to linux:&lt;BR /&gt;1. In the HP-UX(if the hpux is not truested): &lt;BR /&gt;cut -d: -f1,2 /etc/passwd &amp;gt; /tmp/hpuxuser.lst &lt;BR /&gt;&lt;BR /&gt;2. Copy hpuxuser.lst to the linux box's /tmp. &lt;BR /&gt;&lt;BR /&gt;3. Create a 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;}' /tmp/hpuxuser.lst&lt;BR /&gt;&lt;BR /&gt;4. run the script. &lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jul 2003 01:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022274#M130754</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-14T01:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022275#M130755</link>
      <description>thx all reply,&lt;BR /&gt;&lt;BR /&gt;I want to further to ask Tully's method, when run tsconvert , it pop up the error, what is wrong in my system ? thx &lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/tsconvert -r       &lt;BR /&gt;System is not Trusted System.&lt;BR /&gt;Deleting at and crontab audit ID files...&lt;BR /&gt;Can't open directory: /var/spool/cron/.ataids</description>
      <pubDate>Mon, 14 Jul 2003 03:01:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022275#M130755</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-14T03:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022276#M130756</link>
      <description>To restore password functionality, do you try to run tsconvert in single user mode, if no, try to return system to single user mode, then&lt;BR /&gt;run "tsconvert -r" which removes trusted system&lt;BR /&gt;You should remove asterisk in password field of /etc/passwd, that will reactivate passwords.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jul 2003 03:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022276#M130756</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-14T03:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022277#M130757</link>
      <description>Thx all,&lt;BR /&gt;&lt;BR /&gt;It is HP UX non-trusted system now , Is there any tools that can directly mv the user profile from UX to linux ? thx</description>
      <pubDate>Mon, 14 Jul 2003 05:00:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022277#M130757</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-14T05:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022278#M130758</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;No tool exist to move users from hp-ux to linux,&lt;BR /&gt;either you have to use twang's method to move or create the users on linux.&lt;BR /&gt;&lt;BR /&gt;i prefer creating the users insteading of moving</description>
      <pubDate>Mon, 14 Jul 2003 05:36:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022278#M130758</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2003-07-14T05:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022279#M130759</link>
      <description>Thx reply , but there are about 500 users in our system , creating all users profile one by one is not a suitable way I think, I remember that there is a command that can output all the user profile to a file , then copy this file to linux and extract it and overwrite the existing linux user profile , is there similiar unix function to do that? thx.</description>
      <pubDate>Mon, 14 Jul 2003 08:33:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022279#M130759</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-14T08:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022280#M130760</link>
      <description>Hi all ,&lt;BR /&gt;&lt;BR /&gt;Is it no such utility in unix system ?</description>
      <pubDate>Tue, 15 Jul 2003 00:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022280#M130760</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-15T00:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022281#M130761</link>
      <description>thx twang ,&lt;BR /&gt;&lt;BR /&gt;I have tested r method, but how can i preserve the group , user's home directory ? &lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Tue, 15 Jul 2003 01:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022281#M130761</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-15T01:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022282#M130762</link>
      <description>You ask:&lt;BR /&gt;It is HP UX non-trusted system now , Is there any tools that can directly mv the user profile from UX to linux ? &lt;BR /&gt;&lt;BR /&gt;Answer&lt;BR /&gt;&lt;BR /&gt;ftp&lt;BR /&gt;scp&lt;BR /&gt;rcp&lt;BR /&gt;&lt;BR /&gt;Any will do.&lt;BR /&gt;&lt;BR /&gt;As far as preserving groups and such here is a method.&lt;BR /&gt;&lt;BR /&gt;Check what the users group entries were on HP-UX.&lt;BR /&gt;Make sure the same group entries are now in /etc/group&lt;BR /&gt;&lt;BR /&gt;Manually change the user id in /etc/passwd to match the user id from the HP-UX system.&lt;BR /&gt;&lt;BR /&gt;Unix users start with user id 500&lt;BR /&gt;&lt;BR /&gt;If this becomes complex. merely tar up the user files, or scp them across and use this command to change ownerhip and group after the fact.&lt;BR /&gt;&lt;BR /&gt;cd /home/username&lt;BR /&gt;&lt;BR /&gt;chown -R sag:users *&lt;BR /&gt;&lt;BR /&gt;The process can be partially automated, but some eyeball time is required.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;Call me anything you want, but don't forget the points.</description>
      <pubDate>Tue, 15 Jul 2003 01:48:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022282#M130762</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-15T01:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022283#M130763</link>
      <description>Yes Linux is Unix but for me &lt;BR /&gt;if you have not many user  just use useradd to  recreate users. And replace only password.&lt;BR /&gt;Or you can force your users to change password next time they log in</description>
      <pubDate>Tue, 15 Jul 2003 07:56:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022283#M130763</guid>
      <dc:creator>Ivajlo Yanakiev</dc:creator>
      <dc:date>2003-07-15T07:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Move user profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022284#M130764</link>
      <description>Thx all reply , &lt;BR /&gt;&lt;BR /&gt;I have tried twang's method , it is work fine , but still have problem , eg , if the user is no password , then the system will not create the login id , secondly , the script will create the user path to /home , it will not preserve the original user path , it make use some time to maintain totally 500 users in our system. &lt;BR /&gt;Although this is a good method , is there any other method to convert the user profile ( including password , user group , path ) to new system ? thx in advance.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jul 2003 09:47:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-user-profile/m-p/3022284#M130764</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-15T09:47:11Z</dc:date>
    </item>
  </channel>
</rss>

