<?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 Merge user accounts and passwd file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132203#M153174</link>
    <description>Hi, I am merging two L2000 onto an RP5430. I have to merge two sets of users and two passwd files. Some of the users are on both servers. Has anyone got any idears on how I could action this</description>
    <pubDate>Mon, 01 Dec 2003 04:41:56 GMT</pubDate>
    <dc:creator>Robert A Kirkpatrick</dc:creator>
    <dc:date>2003-12-01T04:41:56Z</dc:date>
    <item>
      <title>Merge user accounts and passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132203#M153174</link>
      <description>Hi, I am merging two L2000 onto an RP5430. I have to merge two sets of users and two passwd files. Some of the users are on both servers. Has anyone got any idears on how I could action this</description>
      <pubDate>Mon, 01 Dec 2003 04:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132203#M153174</guid>
      <dc:creator>Robert A Kirkpatrick</dc:creator>
      <dc:date>2003-12-01T04:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Merge user accounts and passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132204#M153175</link>
      <description>You could simply try something like 'cat passwd1 passwd2 | uniq &amp;gt; passwd3', but uniq works better on sorted files which could mess you passwd file (it's better to get system logins at the beginning of the file). A more sophisticated script could do it. Whatever you choose, think about using 'pwck newfile' before overidding real password file.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;PASS1=$1&lt;BR /&gt;PASS2=$2&lt;BR /&gt;NEWPASS=$3&lt;BR /&gt;TMP=/tmp/newpass$$&lt;BR /&gt;cp $PASS1 $TMP&lt;BR /&gt;chmod 644 $TMP&lt;BR /&gt;for USER in $(cut -f1 -d: $PASS2)&lt;BR /&gt;do&lt;BR /&gt;  grep "$USER:" $PASS1 || grep "$USER:" $PASS2 | line &amp;gt;&amp;gt; $TMP&lt;BR /&gt;done&lt;BR /&gt;pwck $TMP&lt;BR /&gt;mv $TMP $NEWPASS&lt;BR /&gt;chmod 444 $NEWPASS&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 01 Dec 2003 05:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132204#M153175</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-12-01T05:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merge user accounts and passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132205#M153176</link>
      <description>I would add one thing to the above post.&lt;BR /&gt; &lt;BR /&gt;You will need to make sure that users that appear on both systems have the same UID and if they don't, come up with some strategy to resolve them. You could find that a user on both machines will have a UID on one machine that conflicts with a user on the other.  These issues can become quite annoying when the user is an application specific user.</description>
      <pubDate>Mon, 01 Dec 2003 05:33:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132205#M153176</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-01T05:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merge user accounts and passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132206#M153177</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;As said you will have to be careful&lt;BR /&gt;&lt;BR /&gt;diff passwd_server1 passwd_server2 will help&lt;BR /&gt;&lt;BR /&gt;But if you are not looking at a great number it will be quicker and safer to create from scratch.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Mon, 01 Dec 2003 06:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/merge-user-accounts-and-passwd-file/m-p/3132206#M153177</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2003-12-01T06:43:06Z</dc:date>
    </item>
  </channel>
</rss>

