<?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: Show logins on Red Hat Linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621391#M19533</link>
    <description>how about:&lt;BR /&gt;&lt;BR /&gt;who -u&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;finger</description>
    <pubDate>Tue, 13 Sep 2005 10:09:44 GMT</pubDate>
    <dc:creator>Jeff Hoevenaar</dc:creator>
    <dc:date>2005-09-13T10:09:44Z</dc:date>
    <item>
      <title>Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621382#M19524</link>
      <description>Hi,&lt;BR /&gt;On HP/UX we have the command "logins" which shows the user logins on the system. Does anybody know a similar command for Red Har Linux.&lt;BR /&gt;&lt;BR /&gt;Thanks...</description>
      <pubDate>Thu, 08 Sep 2005 03:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621382#M19524</guid>
      <dc:creator>Ejnar Svejstrup_1</dc:creator>
      <dc:date>2005-09-08T03:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621383#M19525</link>
      <description>Hi Ejnar,&lt;BR /&gt; &lt;BR /&gt;we run several Linux boxes with RHEL3.&lt;BR /&gt; &lt;BR /&gt;To my knowing a logins command or act-alike doesn't come with the standard distros.&lt;BR /&gt; &lt;BR /&gt;I guess you could obtain sources from logins&lt;BR /&gt;(maybe GNU or similar) and try to build it on RH.&lt;BR /&gt; &lt;BR /&gt;However the functionality logins offers can easily be scripted by parsing /etc/passwd&lt;BR /&gt;(shell, awk, perl, python, or C getpw* syscalls).&lt;BR /&gt;Mostly a mere shell alias will suffice.&lt;BR /&gt; &lt;BR /&gt;So I think it isn't really necessary to have a logins implementation for Linux.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Sep 2005 05:09:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621383#M19525</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-09-08T05:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621384#M19526</link>
      <description>Try this.&lt;BR /&gt;&lt;BR /&gt;// logins.c&lt;BR /&gt;#include &lt;PWD.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;        struct passwd *pwd;&lt;BR /&gt;        pwd=getpwent();&lt;BR /&gt;        while (pwd != NULL )&lt;BR /&gt;        {&lt;BR /&gt;                printf ("%-15s %-6d %-15s %-6d %s\n",pwd-&amp;gt;pw_name,pwd-&amp;gt;pw_uid,pwd-&amp;gt;pw_name,pwd-&amp;gt;pw_gid,pwd-&amp;gt;pw_gecos);&lt;BR /&gt;                pwd=getpwent();&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;    endpwent();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# make logins&lt;BR /&gt;# ./logins&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRING.H&gt;&lt;/SYS&gt;&lt;/PWD.H&gt;</description>
      <pubDate>Thu, 08 Sep 2005 05:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621384#M19526</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-08T05:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621385#M19527</link>
      <description>Slow login may also be related to host name resolution.&lt;BR /&gt;&lt;BR /&gt;telnet ip_address&lt;BR /&gt;telnet host_name&lt;BR /&gt;&lt;BR /&gt;Which one is slow, if second then it may be the way host name resolution is configured. If first, you need to explore more to know the problem of it.</description>
      <pubDate>Thu, 08 Sep 2005 07:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621385#M19527</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-09-08T07:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621386#M19528</link>
      <description>If the "logins" command shows a list of users on the system, you can use:&lt;BR /&gt;&lt;BR /&gt;awk -F ":" '{ print $1 }'&lt;BR /&gt;&lt;BR /&gt;If you do not use local authentication:&lt;BR /&gt;&lt;BR /&gt;getent passwd |awk -F ":" '{ print $1 }'</description>
      <pubDate>Thu, 08 Sep 2005 08:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621386#M19528</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-08T08:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621387#M19529</link>
      <description>Here is an example of using 'awk' to parse through the passwd file.&lt;BR /&gt;&lt;BR /&gt;This example will list the UIDs in use and will present the information so you can see if duplicate UIDs are in use.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Sep 2005 10:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621387#M19529</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-09-08T10:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621388#M19530</link>
      <description>Just ran a test. The standard user report passwd -sa does not work on Linux.&lt;BR /&gt;&lt;BR /&gt;awk script will have to be used.&lt;BR /&gt;&lt;BR /&gt;or.&lt;BR /&gt;&lt;BR /&gt;last | sort -u | more&lt;BR /&gt;&lt;BR /&gt;That will provide you a list of accounts that were actually used.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 08 Sep 2005 12:57:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621388#M19530</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-08T12:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621389#M19531</link>
      <description>I'm not familiar with the HP logins command but if you want to see a list of the last time anyone has logged in use:&lt;BR /&gt;&lt;BR /&gt;lastlog&lt;BR /&gt;&lt;BR /&gt;Or for currently logged in users:&lt;BR /&gt;&lt;BR /&gt;who&lt;BR /&gt;&lt;BR /&gt;If you want to see a password file style list of all users that can log into a system run:&lt;BR /&gt;&lt;BR /&gt;getent passwd&lt;BR /&gt;&lt;BR /&gt;--Dave</description>
      <pubDate>Fri, 09 Sep 2005 13:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621389#M19531</guid>
      <dc:creator>Dave Falloon</dc:creator>
      <dc:date>2005-09-09T13:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621390#M19532</link>
      <description>Hi Ejnar ,&lt;BR /&gt;&lt;BR /&gt;Here it is :&lt;BR /&gt;&lt;BR /&gt;# sort -t: -k 3n,3 passwd | awk -F ":" '{printf ("%-20s %7s %7s %s\n", $1,$3,$4,$5)}' &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy , Have fun,&lt;BR /&gt;Cheers ,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Sep 2005 04:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621390#M19532</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-10T04:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621391#M19533</link>
      <description>how about:&lt;BR /&gt;&lt;BR /&gt;who -u&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;finger</description>
      <pubDate>Tue, 13 Sep 2005 10:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621391#M19533</guid>
      <dc:creator>Jeff Hoevenaar</dc:creator>
      <dc:date>2005-09-13T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show logins on Red Hat Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621392#M19534</link>
      <description>try 'finger', 'w', 'who'</description>
      <pubDate>Tue, 13 Sep 2005 11:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/show-logins-on-red-hat-linux/m-p/3621392#M19534</guid>
      <dc:creator>Matthew_50</dc:creator>
      <dc:date>2005-09-13T11:25:55Z</dc:date>
    </item>
  </channel>
</rss>

