<?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 sync users on multiple HP boxes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461660#M759891</link>
    <description>I have to sync users on HP boxes, so that they have the same GID and PID no matter which box they log into. &lt;BR /&gt;&lt;BR /&gt;Is there a way to get a list of users with their PID and GID numbers so I can compare and then sync among the many boxes?</description>
    <pubDate>Sun, 05 Nov 2000 17:19:09 GMT</pubDate>
    <dc:creator>Victor Mendham</dc:creator>
    <dc:date>2000-11-05T17:19:09Z</dc:date>
    <item>
      <title>sync users on multiple HP boxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461660#M759891</link>
      <description>I have to sync users on HP boxes, so that they have the same GID and PID no matter which box they log into. &lt;BR /&gt;&lt;BR /&gt;Is there a way to get a list of users with their PID and GID numbers so I can compare and then sync among the many boxes?</description>
      <pubDate>Sun, 05 Nov 2000 17:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461660#M759891</guid>
      <dc:creator>Victor Mendham</dc:creator>
      <dc:date>2000-11-05T17:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: sync users on multiple HP boxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461661#M759892</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Keeping the UID (User ID) and the GID (Group ID) of your accounts the same on all your servers is a sound practice.&lt;BR /&gt;&lt;BR /&gt;In the /etc/passwd file, the first field is the username; the second is the encrypted password; UID's are the third; and GID's are the fourth.  Fields in /etc/passwd are delimited by colons (":").&lt;BR /&gt;&lt;BR /&gt;The /etc/group file contains the name of the group as its first field.  The third field is the GID for that name.  The fields in /etc/group are also delimited by colons.&lt;BR /&gt;&lt;BR /&gt;You can list both of these files by doing a "cat" or "more", like:&lt;BR /&gt;&lt;BR /&gt;# more /etc/passwd&lt;BR /&gt;# more /etc/group&lt;BR /&gt;&lt;BR /&gt;You can use SAM to change the UID of an account (user) in a round-about, but safe way.  First create a new, temporary account.  The name doesn't matter.  Next, request the deletion of the old user account.  SAM will ask you what you want to do with the files owned by the account you are deleting.  Choose the option to "adopt" those files by the new temporary user.  Then add back the "real" user with the original name, but specify the UID you want to use.  Now delete the temporary account, transferring the files owned by it to the "real" account.  You can do this repetetively.&lt;BR /&gt;&lt;BR /&gt;Hopefully this helps.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 05 Nov 2000 19:47:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461661#M759892</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-05T19:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: sync users on multiple HP boxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461662#M759893</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Keeping the UID (User ID) and the GID (Group ID) of your accounts the same on all your servers is a sound practice.&lt;BR /&gt;&lt;BR /&gt;In the /etc/passwd file, the first field is the username; the second is the encrypted password; UID's are the third; and GID's are the fourth.  Fields in /etc/passwd are delimited by colons (":").&lt;BR /&gt;&lt;BR /&gt;The /etc/group file contains the name of the group as its first field.  The third field is the GID for that name.  The fields in /etc/group are also delimited by colons.&lt;BR /&gt;&lt;BR /&gt;You can list both of these files by doing a "cat" or "more", like:&lt;BR /&gt;&lt;BR /&gt;# more /etc/passwd&lt;BR /&gt;# more /etc/group&lt;BR /&gt;&lt;BR /&gt;You can use SAM to change the UID of an account (user) in a round-about, but safe way.  First create a new, temporary account.  The name doesn't matter.  Next, request the deletion of the old user account.  SAM will ask you what you want to do with the files owned by the account you are deleting.  Choose the option to "adopt" those files by the new temporary user.  Then add back the "real" user with the original name, but specify the UID you want to use.  Now delete the temporary account, transferring the files owned by it to the "real" account.  You can do this repetetively.&lt;BR /&gt;&lt;BR /&gt;Hopefully this helps.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 05 Nov 2000 19:50:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461662#M759893</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-05T19:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: sync users on multiple HP boxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461663#M759894</link>
      <description>This simple command would give you&lt;BR /&gt;a cleanly formatted list of user, userid&lt;BR /&gt;and gid on a system:&lt;BR /&gt;&lt;BR /&gt;awk 'FS=":" {printf ("%-12s%6d%6dn",$1,$3,$4)}' &amp;lt; /etc/passwd&lt;BR /&gt;&lt;BR /&gt;This will be a bit easier for human reading.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Nov 2000 09:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461663#M759894</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-06T09:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: sync users on multiple HP boxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461664#M759895</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;The backquote has been dropped at the end&lt;BR /&gt;of the format string - before the "n"&lt;BR /&gt;Command should read (hopefully) &lt;BR /&gt;&lt;BR /&gt;awk 'FS=":" {printf ("%-12s%6d%6d\n",$1,$3,$4)}' &amp;lt; /etc/passwd &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Nov 2000 09:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461664#M759895</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-06T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: sync users on multiple HP boxes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461665#M759896</link>
      <description>Is there any shame in using NIS/NIS+ to keep user accounts in sync? Or is NIS+ still so dreadfully insecure as to be unmentionable?&lt;BR /&gt;&lt;BR /&gt;It's a small hurdle to get everything up and running initially, but a great investment in the long run, as it becomes a snap to add and maintain user accounts in the future. 'Installing and Administering NFS Services' (the HP system documentation, viewable at &lt;A href="http://docs.hp.com" target="_blank"&gt;http://docs.hp.com&lt;/A&gt; under the 'Networking and Communications' section) made a handy reference while I was getting up to speed.</description>
      <pubDate>Mon, 06 Nov 2000 15:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sync-users-on-multiple-hp-boxes/m-p/2461665#M759896</guid>
      <dc:creator>Kevin Ernst</dc:creator>
      <dc:date>2000-11-06T15:49:00Z</dc:date>
    </item>
  </channel>
</rss>

