<?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: Who command problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740858#M256089</link>
    <description>Some smart user may have manipulated their .profile file.</description>
    <pubDate>Tue, 28 Feb 2006 10:33:54 GMT</pubDate>
    <dc:creator>AshishJain_USA</dc:creator>
    <dc:date>2006-02-28T10:33:54Z</dc:date>
    <item>
      <title>Who command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740857#M256088</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;we used to manage user maximum sessions allowed by using "who command".&lt;BR /&gt;&lt;BR /&gt;Some of our users .profile scripts manage user sessions with a command line similar to this atached:&lt;BR /&gt;&lt;BR /&gt;taller='who|cut -c1-6|grep taller|wc -l'&lt;BR /&gt;&lt;BR /&gt;We discover today that some user sessions are not reported by who command... i.e. whe launched 3 taller user sessions and "who" reports only one line containing info about taller.&lt;BR /&gt;&lt;BR /&gt;Can anyone help? This mechanism is working for a few years (5) without a problem.&lt;BR /&gt;&lt;BR /&gt;HPUX version  is 10.20.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 28 Feb 2006 10:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740857#M256088</guid>
      <dc:creator>Manuel Gómez González</dc:creator>
      <dc:date>2006-02-28T10:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Who command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740858#M256089</link>
      <description>Some smart user may have manipulated their .profile file.</description>
      <pubDate>Tue, 28 Feb 2006 10:33:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740858#M256089</guid>
      <dc:creator>AshishJain_USA</dc:creator>
      <dc:date>2006-02-28T10:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Who command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740859#M256090</link>
      <description>.profile is ok without manupulations.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Tue, 28 Feb 2006 10:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740859#M256090</guid>
      <dc:creator>Manuel Gómez González</dc:creator>
      <dc:date>2006-02-28T10:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Who command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740860#M256091</link>
      <description>Your utmp and/or wtmp files are probably corrupt. You could try to export/import them using fwtmp and clean them up or simply null the files. Man fwtmp for details.</description>
      <pubDate>Tue, 28 Feb 2006 10:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740860#M256091</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-28T10:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Who command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740861#M256092</link>
      <description>Instead of cut, use awk&lt;BR /&gt;&lt;BR /&gt;'who|awk '{print $1}'|grep taller|wc -l'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What about using last?&lt;BR /&gt;&lt;BR /&gt;last |grep logged |grep taller |wc -l&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 28 Feb 2006 10:43:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740861#M256092</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-02-28T10:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Who command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740862#M256093</link>
      <description>Clay:&lt;BR /&gt;&lt;BR /&gt;So I can reset utmp file with a simply echo &amp;gt; /etc/utmp?&lt;BR /&gt;From the moment utmp is null, who does not return any value until some user log into the system?&lt;BR /&gt;&lt;BR /&gt;Geoff:&lt;BR /&gt;&lt;BR /&gt;'who|awk '{print $1}'|grep taller|wc -l'&lt;BR /&gt;&lt;BR /&gt;It wonÂ´t because who returns only a taler user line.&lt;BR /&gt;&lt;BR /&gt;What about using last?&lt;BR /&gt;ast |grep logged |grep taller |wc -l&lt;BR /&gt;&lt;BR /&gt;I guess it could work.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 28 Feb 2006 10:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-command-problem/m-p/3740862#M256093</guid>
      <dc:creator>Manuel Gómez González</dc:creator>
      <dc:date>2006-02-28T10:55:29Z</dc:date>
    </item>
  </channel>
</rss>

