<?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 Query user id's whcih are non-expiry in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283397#M474657</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've a couple of questions &lt;BR /&gt;&lt;BR /&gt;1) How can I query the user id's on my system  that are non-expiring accounts? It is a hp-ux 11i non-trusted one.&lt;BR /&gt;&lt;BR /&gt;2) The system has only 20 entries in the /etc/passwd feild, however the logins command shows nearly 1200 users. This is an NIS client as well. Are these 1200 users are NIS users? How can I list only local users using logins command?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for all your quick help!!</description>
    <pubDate>Mon, 30 May 2011 08:47:27 GMT</pubDate>
    <dc:creator>點燃</dc:creator>
    <dc:date>2011-05-30T08:47:27Z</dc:date>
    <item>
      <title>Query user id's whcih are non-expiry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283397#M474657</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've a couple of questions &lt;BR /&gt;&lt;BR /&gt;1) How can I query the user id's on my system  that are non-expiring accounts? It is a hp-ux 11i non-trusted one.&lt;BR /&gt;&lt;BR /&gt;2) The system has only 20 entries in the /etc/passwd feild, however the logins command shows nearly 1200 users. This is an NIS client as well. Are these 1200 users are NIS users? How can I list only local users using logins command?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for all your quick help!!</description>
      <pubDate>Mon, 30 May 2011 08:47:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283397#M474657</guid>
      <dc:creator>點燃</dc:creator>
      <dc:date>2011-05-30T08:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query user id's whcih are non-expiry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283398#M474658</link>
      <description>You have the answer. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; This is an NIS client as well. &lt;BR /&gt;&lt;BR /&gt;Since it is NIS client, your local passwd doesn't have any effect.  All user login are from your NIS.</description>
      <pubDate>Mon, 30 May 2011 11:33:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283398#M474658</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-05-30T11:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query user id's whcih are non-expiry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283399#M474659</link>
      <description>Thanks. I knew I've the answer, but my nsswitch.conf says; "passwd compat". Is'nt it mean both local &amp;amp; NIS users can login??&lt;BR /&gt;&lt;BR /&gt;And, my actual questions were, 1)How can I list only local users using logins command?&lt;BR /&gt;&lt;BR /&gt;2) How can I query the user id's on my system that are non-expiring accounts?&lt;BR /&gt;&lt;BR /&gt;Thoughts?&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Mon, 30 May 2011 11:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283399#M474659</guid>
      <dc:creator>點燃</dc:creator>
      <dc:date>2011-05-30T11:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Query user id's whcih are non-expiry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283400#M474660</link>
      <description>&amp;gt;1) How can I list only local users using logins command?&lt;BR /&gt;&lt;BR /&gt;You can always operate directly on /etc/password.  If the password field doesn't have a ",", the password doesn't expire.&lt;BR /&gt;Or logins(1m) says to use: -r local&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) How can I query the user IDs on my system that are non-expiring accounts?&lt;BR /&gt;&lt;BR /&gt;logins -x, or scan the /etc/passwd file:&lt;BR /&gt;awk -F: '$2 !~ /,/ { print "No expiration:", $1}' /etc/passwd&lt;BR /&gt;Or for NIS:&lt;BR /&gt;ypcat passwd | (above awk)</description>
      <pubDate>Mon, 30 May 2011 11:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283400#M474660</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-05-30T11:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query user id's whcih are non-expiry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283401#M474661</link>
      <description>Thanks Dennis. However the -r local doesn't seems to be existing in 11i&lt;BR /&gt;&lt;BR /&gt;TestHost:/root#logins -r local&lt;BR /&gt;Usage: logins [-admopstux] [-g groups] [-l logins]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Mit freundlichen GrÃ¼Ã en</description>
      <pubDate>Mon, 30 May 2011 12:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283401#M474661</guid>
      <dc:creator>點燃</dc:creator>
      <dc:date>2011-05-30T12:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query user id's whcih are non-expiry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283402#M474662</link>
      <description>&amp;gt;However the -r local doesn't seems to be existing in 11i&lt;BR /&gt;&lt;BR /&gt;11i has been retconned to mean any of 11.11 AND on.  Next time please be more specific about your OS version and use the "uname -r" value.  I was looking at the 11.31 man pages.&lt;BR /&gt;&lt;BR /&gt;In regards to using awk, you may want to ignore all "system" IDs with a "*" in the password field.</description>
      <pubDate>Mon, 30 May 2011 12:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283402#M474662</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-05-30T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query user id's whcih are non-expiry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283403#M474663</link>
      <description>thanks.</description>
      <pubDate>Thu, 16 Jun 2011 12:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/query-user-id-s-whcih-are-non-expiry/m-p/5283403#M474663</guid>
      <dc:creator>點燃</dc:creator>
      <dc:date>2011-06-16T12:08:08Z</dc:date>
    </item>
  </channel>
</rss>

