<?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: How to list users groups in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815816#M85452</link>
    <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;id -gn &lt;USER_ACCOUNT&gt;&lt;BR /&gt;&lt;BR /&gt;will list the primary group &lt;USER_ACCOUNT&gt; belongs to (brackets shall indicate required argument, not to be typed)&lt;BR /&gt;&lt;BR /&gt;wheras&lt;BR /&gt;&lt;BR /&gt;id -Gn &lt;USER_ACCOUNT&gt;&lt;BR /&gt;&lt;BR /&gt;will list all the groups that account belongs to&lt;BR /&gt;&lt;BR /&gt;You may easily put these commands in a small script that parses each entry from your passwd&lt;/USER_ACCOUNT&gt;&lt;/USER_ACCOUNT&gt;&lt;/USER_ACCOUNT&gt;</description>
    <pubDate>Mon, 30 Sep 2002 09:14:58 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2002-09-30T09:14:58Z</dc:date>
    <item>
      <title>How to list users groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815812#M85448</link>
      <description>Quick question for someone&lt;BR /&gt;&lt;BR /&gt;Does anyone know of a quick and easy way to list a user's primary and secondary groups (equivalent to the lsuser command on AIX)&lt;BR /&gt;&lt;BR /&gt;Any Help Appreciated&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Mon, 30 Sep 2002 08:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815812#M85448</guid>
      <dc:creator>Michael Campbell</dc:creator>
      <dc:date>2002-09-30T08:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to list users groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815813#M85449</link>
      <description>Hi,&lt;BR /&gt;Give this command&lt;BR /&gt;#id&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.Sivakumar</description>
      <pubDate>Mon, 30 Sep 2002 09:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815813#M85449</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-09-30T09:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to list users groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815814#M85450</link>
      <description>&lt;BR /&gt;id &lt;USERID&gt;&lt;BR /&gt;&lt;/USERID&gt;</description>
      <pubDate>Mon, 30 Sep 2002 09:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815814#M85450</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-09-30T09:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to list users groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815815#M85451</link>
      <description>#  for i in $(cat /etc/passwd | cut -f 1,1 -d:)&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; echo "user: $i ";id $i&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;user: root&lt;BR /&gt;uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),&lt;BR /&gt;(lp),20(users)&lt;BR /&gt;user: daemon&lt;BR /&gt;uid=1(daemon) gid=5(daemon)&lt;BR /&gt;user: bin&lt;BR /&gt;uid=2(bin) gid=2(bin)&lt;BR /&gt;user: sys&lt;BR /&gt;uid=3(sys) gid=3(sys)&lt;BR /&gt;user: adm&lt;BR /&gt;uid=4(adm) gid=4(adm)&lt;BR /&gt;user: uucp&lt;BR /&gt;uid=5(uucp) gid=3(sys)&lt;BR /&gt;user: lp&lt;BR /&gt;uid=9(lp) gid=7(lp)&lt;BR /&gt;user: nuucp&lt;BR /&gt;uid=11(nuucp) gid=11(nuucp)&lt;BR /&gt;user: hpdb&lt;BR /&gt;uid=27(hpdb) gid=1(other)&lt;BR /&gt;user: nobody&lt;BR /&gt;uid=4294967294(nobody) gid=4294967294(nogroup)&lt;BR /&gt;user: www&lt;BR /&gt;uid=30(www) gid=1(other)&lt;BR /&gt;user: javier&lt;BR /&gt;uid=101(javier) gid=0(root)&lt;BR /&gt;user: jgil&lt;BR /&gt;uid=102(jgil) gid=20(users)&lt;BR /&gt;#</description>
      <pubDate>Mon, 30 Sep 2002 09:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815815#M85451</guid>
      <dc:creator>Joaquin Gil de Vergara</dc:creator>
      <dc:date>2002-09-30T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to list users groups</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815816#M85452</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;id -gn &lt;USER_ACCOUNT&gt;&lt;BR /&gt;&lt;BR /&gt;will list the primary group &lt;USER_ACCOUNT&gt; belongs to (brackets shall indicate required argument, not to be typed)&lt;BR /&gt;&lt;BR /&gt;wheras&lt;BR /&gt;&lt;BR /&gt;id -Gn &lt;USER_ACCOUNT&gt;&lt;BR /&gt;&lt;BR /&gt;will list all the groups that account belongs to&lt;BR /&gt;&lt;BR /&gt;You may easily put these commands in a small script that parses each entry from your passwd&lt;/USER_ACCOUNT&gt;&lt;/USER_ACCOUNT&gt;&lt;/USER_ACCOUNT&gt;</description>
      <pubDate>Mon, 30 Sep 2002 09:14:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-list-users-groups/m-p/2815816#M85452</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-09-30T09:14:58Z</dc:date>
    </item>
  </channel>
</rss>

