<?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 Duplicate uid's in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716734#M251933</link>
    <description>I thought pwck checked for duplicate uids, but I guess not. Strange because grpck does check for duplicate group id numbers. &lt;BR /&gt;Anyone know of a command that checks for duplicate uids ?   I recently found some dups on one of the recently built servers and I want to check the other 90 to see how widespread the issue is. &lt;BR /&gt;Actually I think I'll end up writing the script to check each servers password file against what we refer to as the "master password file" on one server. All other servers are supposed to have had uid's and names assigned from this one master but I'm learning this isn't the case. &lt;BR /&gt;&lt;BR /&gt;Just hoping someone out there has a check-for-duplicate-uid script to save me a few steps.</description>
    <pubDate>Tue, 24 Jan 2006 17:15:46 GMT</pubDate>
    <dc:creator>S.Rider</dc:creator>
    <dc:date>2006-01-24T17:15:46Z</dc:date>
    <item>
      <title>Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716734#M251933</link>
      <description>I thought pwck checked for duplicate uids, but I guess not. Strange because grpck does check for duplicate group id numbers. &lt;BR /&gt;Anyone know of a command that checks for duplicate uids ?   I recently found some dups on one of the recently built servers and I want to check the other 90 to see how widespread the issue is. &lt;BR /&gt;Actually I think I'll end up writing the script to check each servers password file against what we refer to as the "master password file" on one server. All other servers are supposed to have had uid's and names assigned from this one master but I'm learning this isn't the case. &lt;BR /&gt;&lt;BR /&gt;Just hoping someone out there has a check-for-duplicate-uid script to save me a few steps.</description>
      <pubDate>Tue, 24 Jan 2006 17:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716734#M251933</guid>
      <dc:creator>S.Rider</dc:creator>
      <dc:date>2006-01-24T17:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716735#M251934</link>
      <description>Hi Jay&lt;BR /&gt;&lt;BR /&gt;awk -F: '{ print $3 }' /etc/passwd | sort | uniq -d &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you extract all UIDs, sort them, and print only duplicates lines.  Simple one liner. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jan 2006 17:33:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716735#M251934</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2006-01-24T17:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716736#M251935</link>
      <description>Here's one that will check for duplicate logins and duplicate uid's, dupacct.sh. If any are found, output is written on stdout. No news is good news.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jan 2006 17:34:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716736#M251935</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-01-24T17:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716737#M251936</link>
      <description>Hi Jay:&lt;BR /&gt;&lt;BR /&gt;This script will print out the duplicate UIDs (if any):&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;my  %user;&lt;BR /&gt;my ($name, $uid);&lt;BR /&gt;&lt;BR /&gt;while (($name,undef,$uid) = getpwent) {&lt;BR /&gt;    $user{$uid}++;&lt;BR /&gt;}&lt;BR /&gt;foreach $uid (keys %user) {&lt;BR /&gt;    print $uid, "\n" if $user{$uid} &amp;gt; 1;&lt;BR /&gt;}&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 24 Jan 2006 17:39:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716737#M251936</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-24T17:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716738#M251937</link>
      <description>Hi (again) Jay:&lt;BR /&gt;&lt;BR /&gt;Here's a better version.  This script finds any duplicate UIDs and reports them along with the associated usernames.  Nothing is reported if no duplicates exist.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;my  %user;&lt;BR /&gt;my ($name, $uid);&lt;BR /&gt;&lt;BR /&gt;while (($name,undef,$uid) = getpwent) {&lt;BR /&gt;    push( @{$user{$uid}}, $name );&lt;BR /&gt;}&lt;BR /&gt;foreach $uid (sort keys %user) {&lt;BR /&gt;    print "$uid = @{$user{$uid}}\n" if ($#{$user{$uid}}) &amp;gt; 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;...For example:&lt;BR /&gt;&lt;BR /&gt;103 = jay jaykoonz koonz&lt;BR /&gt;107 = oper operator&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 24 Jan 2006 18:11:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716738#M251937</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-24T18:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716739#M251938</link>
      <description>I must be missing something. Why do you have to write perls and C when you already have the logins command ?&lt;BR /&gt;&lt;BR /&gt;  logins -d will list the user accounts with duplicate IDs.</description>
      <pubDate>Mon, 30 Jan 2006 15:58:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716739#M251938</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2006-01-30T15:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716740#M251939</link>
      <description>The logins command has a switch for checking dup UIDs.&lt;BR /&gt;&lt;BR /&gt;Other options available. do 'man logins'</description>
      <pubDate>Mon, 30 Jan 2006 16:06:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716740#M251939</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-01-30T16:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716741#M251940</link>
      <description>Hi Sundar:&lt;BR /&gt;&lt;BR /&gt;You wrote, "Why do you have to write perls and C when you already have the logins command ?".&lt;BR /&gt;&lt;BR /&gt;I suppose I could answer, "For fun, of course!".  While that is true, I had flat forgotten about the 'logins' command :-))&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;..JRF...</description>
      <pubDate>Mon, 30 Jan 2006 16:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716741#M251940</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-30T16:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716742#M251941</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;    Being an avid scripter myself, I would agree with you it is "fun". Take no offense but I would rather invest my energy in something that is not readily available&lt;BR /&gt;&lt;BR /&gt;Sundar.</description>
      <pubDate>Mon, 30 Jan 2006 16:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716742#M251941</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2006-01-30T16:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate uid's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716743#M251942</link>
      <description>Mainly because the logins command is a non-standard command so that if one has to do the check across multiple flavors of UNIX, one would like a one-size-fits-all command.</description>
      <pubDate>Mon, 30 Jan 2006 17:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicate-uid-s/m-p/3716743#M251942</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-01-30T17:13:25Z</dc:date>
    </item>
  </channel>
</rss>

