<?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: ftp logging per user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856434#M820774</link>
    <description>yes my friends,&lt;BR /&gt;i have all the ftp activities logged in one file,&lt;BR /&gt;but i need to seperate it...</description>
    <pubDate>Wed, 04 Dec 2002 07:09:32 GMT</pubDate>
    <dc:creator>Atil Volkan Yildirim</dc:creator>
    <dc:date>2002-12-04T07:09:32Z</dc:date>
    <item>
      <title>ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856430#M820770</link>
      <description>hi there,&lt;BR /&gt;I need to log all of the users ftp session activities in seperate files (i mean one log file for one session)...&lt;BR /&gt;&lt;BR /&gt;any great ideas?&lt;BR /&gt;&lt;BR /&gt;thx...</description>
      <pubDate>Tue, 03 Dec 2002 14:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856430#M820770</guid>
      <dc:creator>Atil Volkan Yildirim</dc:creator>
      <dc:date>2002-12-03T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856431#M820771</link>
      <description>Perhaps following links can help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x977985079106d71190050090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x977985079106d71190050090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062909947" target="_blank"&gt;http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062909947&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Armin</description>
      <pubDate>Tue, 03 Dec 2002 14:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856431#M820771</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2002-12-03T14:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856432#M820772</link>
      <description>hmm,&lt;BR /&gt;i have ftp debugging and logging enabled at the top level,&lt;BR /&gt;so i have a file with all the session activities are logged in...but what about to log in seperate files...&lt;BR /&gt;maybe we have to write a script that reads line by line the ftp log and then do some magic,&lt;BR /&gt;but is there an easier way?&lt;BR /&gt;&lt;BR /&gt;thx...</description>
      <pubDate>Tue, 03 Dec 2002 15:06:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856432#M820772</guid>
      <dc:creator>Atil Volkan Yildirim</dc:creator>
      <dc:date>2002-12-03T15:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856433#M820773</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Have you specified the -L option for ftpd in inetd.conf?&lt;BR /&gt;&lt;BR /&gt;This won't put it int a special, by-user file, but at least all commands will be logged into syslog.log&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 03 Dec 2002 17:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856433#M820773</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-12-03T17:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856434#M820774</link>
      <description>yes my friends,&lt;BR /&gt;i have all the ftp activities logged in one file,&lt;BR /&gt;but i need to seperate it...</description>
      <pubDate>Wed, 04 Dec 2002 07:09:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856434#M820774</guid>
      <dc:creator>Atil Volkan Yildirim</dc:creator>
      <dc:date>2002-12-04T07:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856435#M820775</link>
      <description>I am not sure is possible to have seperate file, some expert can give good idea. Otherwise you can grab the syslog and grep to some other file through cronjob.&lt;BR /&gt;cat /var/adm/syslog/syslog.log  | grep ftpd&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Dec 2002 09:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856435#M820775</guid>
      <dc:creator>kish_1</dc:creator>
      <dc:date>2002-12-04T09:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856436#M820776</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;tcpwrapper comes to mind.&lt;BR /&gt;&lt;BR /&gt;Never tried it in this specific manner but nevertheless, you might want to give it a try.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Wed, 04 Dec 2002 09:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856436#M820776</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-12-04T09:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856437#M820777</link>
      <description>I am always reluctant to pass along scripts, because everybody may laugh.&lt;BR /&gt;&lt;BR /&gt;The following sample code will do what you want. and works One my ftp server.&lt;BR /&gt;&lt;BR /&gt;Assumptions:&lt;BR /&gt;I am using HPUX 11.00&lt;BR /&gt;the ftpd is set to log into syslog.log.&lt;BR /&gt;&lt;BR /&gt;#Make a directory to put files And cd there&lt;BR /&gt;# you should  improve this logic to match your needs&lt;BR /&gt;DIR=/tmp/ftp$$&lt;BR /&gt;mkdir ${DIR}&lt;BR /&gt;cd ${DIR}&lt;BR /&gt;# grep ftpd related activity from syslog.&lt;BR /&gt;# sort the results so the pids are in order as opposed to timestamp&lt;BR /&gt;#Awk out and append users related stuff.&lt;BR /&gt;grep -e "ftpd\[" /var/adm/syslog/syslog.log |&lt;BR /&gt;        sort +17 |&lt;BR /&gt;awk ' BEGIN {FS = ","; OFS = ",";}&lt;BR /&gt;{&lt;BR /&gt;if ( $0 ~ /FTP LOGIN FROM/) { USER=$2&lt;BR /&gt;                              gsub(/ /,"", USER)}&lt;BR /&gt;printf("%s\n ",$0) &amp;gt;&amp;gt;USER&lt;BR /&gt;} '&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Dec 2002 19:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856437#M820777</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2002-12-04T19:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: ftp logging per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856438#M820778</link>
      <description>ok experts,&lt;BR /&gt;here is what i did:&lt;BR /&gt;1) install&amp;amp;compile tcp-wrapper&lt;BR /&gt;2) edit inetd.conf:&lt;BR /&gt;/ftp/tcp_wrappers_7.6/tcpd     /usr/sbin/ftpd [options]...&lt;BR /&gt;3) HUP it&lt;BR /&gt;4) edit hosts.allow :&lt;BR /&gt;#  more hosts.allow  &lt;BR /&gt;ftpd: ALL: (/home/volkan/ftplogger %p) &amp;amp;&lt;BR /&gt;&lt;BR /&gt;5) and here's is the prototype of the code:&lt;BR /&gt;me=$$&lt;BR /&gt;ftp_proc=$1&lt;BR /&gt;tail -1f /var/adm/syslog/syslog.log | while read line;do&lt;BR /&gt;echo $line | grep -q $ftp_proc &lt;BR /&gt;if [ $? -eq 0 ] &lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;echo $line | grep -q 'FTP LOGIN'&lt;BR /&gt;if [ $? -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;user_name=`echo $line | awk '{print $10}'`&lt;BR /&gt;fi &lt;BR /&gt;&lt;BR /&gt;echo $line | grep -Eq 'lost connection|timed out|Goodbye.'&lt;BR /&gt;if [ $? -eq 0 ]&lt;BR /&gt;then &lt;BR /&gt;echo $line &amp;gt;&amp;gt; /home/volkan/tmp/${ftp_proc}.ftplog.tmp&lt;BR /&gt;mv /home/volkan/tmp/${ftp_proc}.ftplog.tmp /home/volkan/logs/${user_name:-"unknown"}.${ftp_proc}.ftplog.`date +"%Y-%m-%d"`&lt;BR /&gt;kill -9 `ps -ef | grep $me | grep -v grep | grep -v ftplogger | awk '{print $2}'`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;exit&lt;BR /&gt;else&lt;BR /&gt;echo $line &amp;gt;&amp;gt; /home/volkan/tmp/${ftp_proc}.ftplog.tmp&lt;BR /&gt;fi&lt;BR /&gt;fi &lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;6) by the way, this is not an hp-ux box, as i have no&lt;BR /&gt;UX test box :(, i need to see it in the production env..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thx all...&lt;BR /&gt;any easier ways are welcome...&lt;BR /&gt;&lt;BR /&gt;regards...</description>
      <pubDate>Wed, 11 Dec 2002 10:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-logging-per-user/m-p/2856438#M820778</guid>
      <dc:creator>Atil Volkan Yildirim</dc:creator>
      <dc:date>2002-12-11T10:49:43Z</dc:date>
    </item>
  </channel>
</rss>

