<?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: Log telnet session username in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277938#M179873</link>
    <description>Lazsio,&lt;BR /&gt;&lt;BR /&gt;A user that logs in via telnet has a TTY of pts/t** as viewed in ps -ef, who -a, or last output.&lt;BR /&gt;&lt;BR /&gt;Hope that helps a little,&lt;BR /&gt;-&amp;gt; Brian Hackley</description>
    <pubDate>Tue, 18 May 2004 07:57:46 GMT</pubDate>
    <dc:creator>Brian Hackley</dc:creator>
    <dc:date>2004-05-18T07:57:46Z</dc:date>
    <item>
      <title>Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277935#M179870</link>
      <description>How is it possible to log which user is using telnet to login?&lt;BR /&gt;Inted -l logs only the hostname in the syslog but not the username, like:&lt;BR /&gt;May 17 13:50:28 aaenwh2 inetd[29548]: telnet/tcp: Connection from unknown (10.117.243.242) at Mon May 17 13:50:28 2004&lt;BR /&gt;&lt;BR /&gt;As I see telnetd don't offer a logging capability in HPUX 11.X.&lt;BR /&gt;How to do then?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance...</description>
      <pubDate>Mon, 17 May 2004 06:54:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277935#M179870</guid>
      <dc:creator>Laszlo Csizmadia</dc:creator>
      <dc:date>2004-05-17T06:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277936#M179871</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;By adding some code in /etc/profile. Detect wether the session is telnet (the father of your shell process should be a telnetd). In that case, use logger to log aline in syslog.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 17 May 2004 07:08:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277936#M179871</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-05-17T07:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277937#M179872</link>
      <description>You can use last/lastb to view history of successful/unsuccessful logins.  &lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Mon, 17 May 2004 07:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277937#M179872</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-05-17T07:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277938#M179873</link>
      <description>Lazsio,&lt;BR /&gt;&lt;BR /&gt;A user that logs in via telnet has a TTY of pts/t** as viewed in ps -ef, who -a, or last output.&lt;BR /&gt;&lt;BR /&gt;Hope that helps a little,&lt;BR /&gt;-&amp;gt; Brian Hackley</description>
      <pubDate>Tue, 18 May 2004 07:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277938#M179873</guid>
      <dc:creator>Brian Hackley</dc:creator>
      <dc:date>2004-05-18T07:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277939#M179874</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;See if &lt;BR /&gt;# who -R&lt;BR /&gt;&lt;BR /&gt;Helps in any way.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Tue, 18 May 2004 08:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277939#M179874</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-05-18T08:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277940#M179875</link>
      <description>We routinely do this by placing the following in the /etc/profile and outputting to a file.&lt;BR /&gt;&lt;BR /&gt;last -R | head -1&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Tue, 18 May 2004 12:47:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277940#M179875</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-05-18T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277941#M179876</link>
      <description>We do this in .profile for root:&lt;BR /&gt;&lt;BR /&gt;# Set up logging&lt;BR /&gt;HISTFILE=${HOME}/.sh_history_`who am i|awk '{ print $1}'`&lt;BR /&gt;export HISTFILE&lt;BR /&gt;date &amp;gt;&amp;gt;$HISTFILE&lt;BR /&gt;HISTSIZE=500&lt;BR /&gt;export HISTSIZE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 18 May 2004 13:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277941#M179876</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-05-18T13:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277942#M179877</link>
      <description>Hey Laszlo,&lt;BR /&gt;To find out who is accessing the system remotely (ftp, telnet, secure shell), I simply do:&lt;BR /&gt;&lt;BR /&gt;# last -R |grep -v console&lt;BR /&gt;&lt;BR /&gt;Very simple, hope this helps.</description>
      <pubDate>Tue, 18 May 2004 13:30:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277942#M179877</guid>
      <dc:creator>Dani Seely</dc:creator>
      <dc:date>2004-05-18T13:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277943#M179878</link>
      <description>If you have tcp wrappers. you can put the services in /hosts.deny and hosts.allow and then you will get everything logged in syslog.log&lt;BR /&gt;&lt;BR /&gt;Like you want to allow ftp to all, the&lt;BR /&gt;/etc/hosts.allow will ike follows&lt;BR /&gt;&lt;BR /&gt;ftp:ALL&lt;BR /&gt;&lt;BR /&gt;Then whoever does ftp gets logged in syslog.log with username&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Tue, 18 May 2004 13:47:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277943#M179878</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-05-18T13:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Log telnet session username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277944#M179879</link>
      <description>As telnetd doesn't have any logging facility finally I putted this line in the /etc/profile:&lt;BR /&gt;who -mR|awk '{if(match($2, "pts\/t")) print}'&amp;gt;&amp;gt;/tmp/telnet.log&lt;BR /&gt;&lt;BR /&gt;Thanks for the help...</description>
      <pubDate>Wed, 19 May 2004 00:55:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-telnet-session-username/m-p/3277944#M179879</guid>
      <dc:creator>Laszlo Csizmadia</dc:creator>
      <dc:date>2004-05-19T00:55:53Z</dc:date>
    </item>
  </channel>
</rss>

