<?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: Track User sessions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943649#M412173</link>
    <description>Joe,&lt;BR /&gt;As an addition to other replies &lt;BR /&gt;try to visit the links below;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=109749" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=109749&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=218820" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=218820&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck,</description>
    <pubDate>Thu, 01 Dec 2005 02:11:20 GMT</pubDate>
    <dc:creator>Cem Tugrul</dc:creator>
    <dc:date>2005-12-01T02:11:20Z</dc:date>
    <item>
      <title>Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943641#M412165</link>
      <description>Can someone tell me how to track user sessions? for example i would like to track all the users who have come into the hp-ux box thru telnet, rlogin etc.. Please help.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe</description>
      <pubDate>Wed, 30 Nov 2005 09:43:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943641#M412165</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2005-11-30T09:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943642#M412166</link>
      <description>Hi Joe:&lt;BR /&gt;&lt;BR /&gt;Use 'last'.  See the man pages for more information.  'last' uses '/var/adm/wtmp'.  IF it is not present, create it by 'touch'ing it.  It will grow without bound and will need to be nulled or trimmed.  &lt;BR /&gt;&lt;BR /&gt;If there is nothing you want preserved, do:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;If you want to preserve some contents, you must convert the binary file to an ASCII file; edit (delete) what you don't want; and convert the ASCII file back to the binary format:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/wtmp &lt;BR /&gt;&lt;BR /&gt;...edit... &lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp -ic &amp;lt; /tmp/wtmp &amp;gt; /var/adm/wtmp &lt;BR /&gt;&lt;BR /&gt;You can do the same for the 'btmp' data.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 Nov 2005 09:50:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943642#M412166</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-30T09:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943643#M412167</link>
      <description>Joe,&lt;BR /&gt;&lt;BR /&gt;If you want greater detail/tracking ability other than that supplied by last, you will need to turn on auditing (assuming your system(s) are in trusted mode)&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 30 Nov 2005 10:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943643#M412167</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-11-30T10:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943644#M412168</link>
      <description>Shalom Joe,&lt;BR /&gt;&lt;BR /&gt;inetd -l&lt;BR /&gt;&lt;BR /&gt;Enhances logging.&lt;BR /&gt;&lt;BR /&gt;tail -f /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;You will see all relavent activity including source IP address as it happens.&lt;BR /&gt;&lt;BR /&gt;the /var/adm/wtmp and /var/adm/btmp databases provide a record of this activity without the other aspects of syslog. &lt;BR /&gt;&lt;BR /&gt;They are binary files and can accessed via the last and lastb commands respectively.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 30 Nov 2005 10:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943644#M412168</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-30T10:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943645#M412169</link>
      <description>Hi joe ,&lt;BR /&gt;&lt;BR /&gt;You can put script command in users .profile. And entire user activity will be logged.&lt;BR /&gt;&lt;BR /&gt;check details with # man script&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Wed, 30 Nov 2005 10:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943645#M412169</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-11-30T10:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943646#M412170</link>
      <description>JRF/SEP:&lt;BR /&gt;&lt;BR /&gt;Thanks. What i was looking for was the ability to track users based on the way they have logged into the system. For example..i would want to list all users who have come into the box using telnet, similarly rlogin. if i  have a particular uses session thren i need to know whether that particular user has come into the box using telnet or rlogin etc. is there a way to do it?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe</description>
      <pubDate>Wed, 30 Nov 2005 10:23:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943646#M412170</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2005-11-30T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943647#M412171</link>
      <description>Hi Joe:&lt;BR /&gt;&lt;BR /&gt;Look at the output of 'last'.  It *will* show variously terminal origin (e.g. pts/ta), or 'ftp', 'remshd'.&lt;BR /&gt;&lt;BR /&gt;You can also get the connection point (e.g. hostname or IPaddress) by adding the '-R' switch:&lt;BR /&gt;&lt;BR /&gt;# last -R&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 Nov 2005 10:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943647#M412171</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-30T10:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943648#M412172</link>
      <description>Hi joe , &lt;BR /&gt;&lt;BR /&gt;The answer is last command. (logs takes from /var/adm/wtmp)&lt;BR /&gt;Check with last command to find out if particular user has come to the box using telnet or rlogin or ftp etc.&lt;BR /&gt;&lt;BR /&gt;Check for  10 times, latest login of a user :&lt;BR /&gt;&lt;BR /&gt;# last -R username  | head -n 10 &lt;BR /&gt;&lt;BR /&gt;pts/1&lt;BR /&gt;pts/2 etc.. are through ssh , rlogin .&lt;BR /&gt;&lt;BR /&gt;pts/ta  is through telnet&lt;BR /&gt;&lt;BR /&gt;remshd : is throgh remote shell server.&lt;BR /&gt;&lt;BR /&gt;ftp    : through ftp login.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Nov 2005 14:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943648#M412172</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-11-30T14:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943649#M412173</link>
      <description>Joe,&lt;BR /&gt;As an addition to other replies &lt;BR /&gt;try to visit the links below;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=109749" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=109749&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=218820" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=218820&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck,</description>
      <pubDate>Thu, 01 Dec 2005 02:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943649#M412173</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-12-01T02:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943650#M412174</link>
      <description>You can use last -R to get r* commands login and terminal logings also.&lt;BR /&gt;&lt;BR /&gt;To specifically track telnet based login and rlogin then,&lt;BR /&gt;&lt;BR /&gt;Using /etc/profile setting,&lt;BR /&gt;&lt;BR /&gt;# Track User Sessions - Joe&lt;BR /&gt;USERLOG=/var/adm/telnet_rlogin.log&lt;BR /&gt;ps | grep -q 'telnet'&lt;BR /&gt;&lt;BR /&gt;if [[ ${?} -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt; echo "$(who -m) $(date) telnet session" &amp;gt;&amp;gt; ${USERLOG}&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;ps | grep -q 'rlogin'&lt;BR /&gt;&lt;BR /&gt;if [[ ${?} -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt; echo "$(who -m) $(date) rlogin session" &amp;gt;&amp;gt; ${USERLOG}&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;save the file and audit with that /var/adm/telnet_rlogin.log file.&lt;BR /&gt;&lt;BR /&gt;It will do it.</description>
      <pubDate>Thu, 01 Dec 2005 02:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943650#M412174</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-12-01T02:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Track User sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943651#M412175</link>
      <description>Thanks all&lt;BR /&gt;&lt;BR /&gt;Joe</description>
      <pubDate>Thu, 01 Dec 2005 08:31:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/track-user-sessions/m-p/4943651#M412175</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2005-12-01T08:31:01Z</dc:date>
    </item>
  </channel>
</rss>

