....................................../////.===Shadow-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 195.3.193.30  /  Your IP : 216.73.216.125
Web Server : Apache
System : Linux server3 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User : web032 ( 1035)
PHP Version : 7.3.33
Disable Function : show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, disk_total_space, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/doc/proftpd-doc/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/proftpd-doc/modules/mod_log.html
<!DOCTYPE html>
<html>
<head>
<title>ProFTPD module mod_log</title>
</head>

<body bgcolor=white>

<hr>
<center>
<h2><b>ProFTPD module <code>mod_log</code></b></h2>
</center>
<hr><br>

<p>
This module is contained in the <code>mod_log.c</code> file for
ProFTPD 1.3.<i>x</i>, and is compiled by default.

<h2>Directives</h2>
<ul>
  <li><a href="#AllowLogSymlinks">AllowLogSymlinks</a>
  <li><a href="#ExtendedLog">ExtendedLog</a>
  <li><a href="#LogFormat">LogFormat</a>
  <li><a href="#LogOptions">LogOptions</a>
  <li><a href="#ServerLog">ServerLog</a>
  <li><a href="#SystemLog">SystemLog</a>
</ul>

<hr>
<h3><a name="AllowLogSymlinks">AllowLogSymlinks</a></h3>
<strong>Syntax:</strong> AllowLogSymlinks <em>on|off</em><br>
<strong>Default:</strong> None<br>
<strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
<strong>Module:</strong> mod_log<br>
<strong>Compatibility:</strong> 1.2.2rc2 and later

<p>
By default, the server will the path of any configured
<a href="#SystemLog"><code>SystemLog</code></a>, any configured
<a href="mod_core.html#TransferLog"><code>TransferLog</code></a>s, and any
configured <a href="#ExtendedLog"><code>ExtendedLog</code></a>s to see if they
are symbolic links. If the paths <i>are</i> symbolic links, <code>proftpd</code>
will refuse to log to that link unless explicitly configured to do so via
this <code>AllowLogSymlinks</code> directive.

<p>
<b>Security Note</b>: This behaviour should not be allowed unless for a very
good reason.  By allowing the server to open symbolic links with its root
privileges, you are allowing a potential symlink attack where the server could
be tricked into overwriting arbitrary system files. <i>You have been
warned.</i>

<p>
<hr>
<h3><a name="ExtendedLog">ExtendedLog</a></h3>
<strong>Syntax:</strong> ExtendedLog <em>path [cmd-classes [format-name]]</em><br>
<strong>Default:</strong> None<br>
<strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code>, <code>&lt;Anonymous&gt;</code><br>
<strong>Module:</strong> mod_log<br>
<strong>Compatibility:</strong> 1.1.6p11 and later

<p>
The <code>ExtendedLog</code> directive allows customizable logfiles to be
generated, either globally or per <code>&lt;VirtualHost&gt;</code>.  The
<em>path</em> argument should contain an absolute pathname to a logfile which
will be appended to when <code>proftpd</code> starts; the pathname should
<b>not</b> be to a file in a nonexistent directory, to a world-writable
directory, or be a symbolic link (unless
<a href="#AllowLogSymlinks"><code>AllowLogSymlinks</code></a> is set to
<em>on</em>). Multiple logfiles, potentially with different command classes and
formats) can be created. Optionally, the <em>cmd-classes</em> parameter can be
used to control which types of commands are logged.  If no command classes are
specified, <code>proftpd</code> logs all commands by default.
<b>Note</b> that passwords are hidden.  If used, the <em>cmd-classes</em>
parameter is a comma-delimited (with <b>no whitespace</b>) list of which
commands to log.

<p>
In <code>proftpd-1.2.8rc1</code> and later, the <em>path</em> argument can
be of the form &quot;syslog:<i>level</i>&quot;.  The &quot;syslog:&quot; prefix
configures <code>mod_log</code> to write the <code>ExtendedLog</code> data
to syslog rather than to a file.  The <i>level</i> configures the syslog
level at which to log the data.  For example:
<pre>
  ExtendedLog syslog:info ALL default
</pre>

<p>
This table shows the supported command classes:
<p>
<table border=1 summary="Command Classes">
  <tr>
    <td><b>Command Class</b></td>
    <td><b>FTP Commands</b></td>
  </tr>

  <tr>
    <td><code>ALL</code></td>
    <td>All commands <i>except</i> the <code>EXIT</code> pseudo-command (<i>default</i>)</td>
  </tr>

  <tr>
    <td><code>NONE</code></td>
    <td>No commands</td>
  </tr>

  <tr>
    <td><code>AUTH</code></td>
    <td>Authentication commands: <code>ACCT</code>, <code>PASS</code>,
      <code>REIN</code>, <code>USER</code></td>
  </tr>

  <tr>
    <td><code>INFO</code></td>
    <td>Informational commands: <code>FEAT</code>, <code>HELP</code>,
      <code>MDTM</code>, <code>QUIT</code>, <code>PWD</code>, <code>STAT</code>,
      <code>SIZE</code>, <code>SYST</code>, <code>XPWD</code></td>
  </tr>

  <tr>
    <td><code>DIRS</code></td>
    <td>Directory commands: <code>CDUP</code>, <code>CWD</code>,
      <code>LIST</code>, <code>MKD</code>, <code>MLSD</code>, <code>MLST</code>,
      <code>NLST</code>, <code>RMD</code>, <code>XCWD</code>, <code>XCUP</code>,
      <code>XMKD</code>, <code>XRMD</code></td>
  </tr>

  <tr>
    <td><code>READ</code></td>
    <td>File reading: <code>RETR</code></td>
  </tr>

  <tr>
    <td><code>WRITE</code></td>
    <td>File/directory writing or creation: <code>APPE</code>, <code>MFF</code>,
      <code>MFMT</code>, <code>MKD</code>, <code>RMD</code>, <code>RNFR</code>,
      <code>RNTO</code>, <code>STOR</code>, <code>STOU</code>,
      <code>XMKD</code>, <code>XRMD</code></td>
  </tr>

  <tr>
    <td><code>MISC</code></td>
    <td>Miscellaneous commands: <code>ABOR</code>, <code>ALLO</code>,
      <code>EPRT</code>, <code>EPSV</code>, <code>MODE</code>,
      <code>NOOP</code>, <code>OPTS</code>, <code>PASV</code>,
      <code>PORT</code>, <code>REST</code>, <code>RNFR</code>,
      <code>RNTO</code>, <code>SITE</code>, <code>SMNT</code>,
      <code>STRU</code>, <code>TYPE</code></td>
  </tr>

  <tr>
    <td><code>SEC</code></td>
    <td>RFC2228-related security FTP commands: <code>AUTH</code>,
      <code>CCC</code>, <code>PBSZ</code>, <code>PROT</code></td>
  </tr>

  <tr>
    <td><code>EXIT</code></td>
    <td>Logs the configured <code>LogFormat</code> at session exit.<br>
        <b>NOTE</b>: <code>EXIT</code> is <b>not</b> part of the
        <code>ALL</code> command class, in order to preserve
        backward-compatible <code>ALL</code> behavior.</td>
  </tr>
</table>

<p>
If a <em>format-name</em> parameter is used, <code>ExtendedLog</code> will
use the named <a href="#LogFormat"><code>LogFormat</code></a>. Otherwise, the
default format of "%h %l %u %t \"%r\" %s %b" is used.

<p>
For example, to log all read and write operations to
<code>/var/log/ftp.log</code> using the default format, use:
<pre>
  ExtendedLog /var/log/ftp.log READ,WRITE
</pre>
and to log all read and write operations to <code>/var/log/ftp.log</code>
using your own <code>LogFormat</code> named "custom", use:
<pre>
  LogFormat custom ...
  ExtendedLog /var/log/ftp.log READ,WRITE custom
</pre>

<p>
See also: <a href="#AllowLogSymlinks"><code>AllowLogSymlinks</code></a>,
<a href="#LogFormat"><code>LogFormat</code></a>,
<a href="mod_core.html#TransferLog"><code>TransferLog</code></a>

<p>
<hr>
<h3><a name="LogFormat">LogFormat</a></h3>
<strong>Syntax:</strong> LogFormat <em>format-name format-string</em><br>
<strong>Default:</strong> LogFormat default "%h %l %u %t \"%r\" %s %b"<br>
<strong>Context:</strong> server config<br>
<strong>Module:</strong> mod_log<br>
<strong>Compatibility:</strong> 1.1.6p11 and later

<p>
The <code>LogFormat</code> directive can be used to create a custom logging
format for use with the <a href="#ExtendedLog"><code>ExtendedLog</code></a>
directive.  Once created, the format can be referenced by the specified
<em>format-name</em>. The <em>format-string</em> parameter can consist of
any combination of letters, numbers and symbols. The special character '%' is
used to start a meta sequence/variable (see below). To insert a literal '%'
character, use "%%".

<p>
The default <code>LogFormat</code> is:
<pre>
  "%h %l %u %t \"%r\" %s %b"
</pre>
which produces log entries in the <a href="http://www.w3.org/Daemon/User/Config/Logging.html#common-logfile-format">Common Log Format</a>.

<p>
The following meta sequences/variables are available and are replaced as
indicated when logging.

<p>
<table border=1 summary="LogFormat Variables">
  <tr>
    <td><b>Variable</b></td>
    <td><b>Value</b></td>
  </tr>

  <tr>
    <td>&nbsp;<code>%a</code>&nbsp;</td>
    <td>Remote client IP address</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%A</code>&nbsp;</td>
    <td>Anonymous login password, or "UNKNOWN" for regular logins</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{basename}</code>&nbsp;</td>
    <td>Last component of path, <i>i.e.</i> just the file or directory name.</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%b</code>&nbsp;</td>
    <td>Number of bytes sent for this command</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%c</code>&nbsp;</td>
    <td>Client connection class, or "-" if undefined</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%d</code>&nbsp;</td>
    <td>Directory name (<i>not</i> full path) for: <code>CDUP</code>,
      <code>CWD</code>, <code>LIST</code>, <code>MLSD</code>, <code>MKD</code>,
      <code>NLST</code>, <code>RMD</code>, <code>XCWD</code>, <code>XCUP</code>,
      <code>XMKD</code>, <code>XRMD</code></td>
  </tr>

  <tr>
    <td>&nbsp;<code>%D</code>&nbsp;</td>
    <td>Directory path (full path) for: <code>CDUP</code>,
      <code>CWD</code>, <code>LIST</code>, <code>MLSD</code>, <code>MKD</code>,
      <code>NLST</code>, <code>RMD</code>, <code>XCWD</code>, <code>XCUP</code>,
      <code>XMKD</code>, <code>XRMD</code></td>
  </tr>

  <tr>
    <td>&nbsp;<code>%E</code>&nbsp;</td>
    <td>End-of-session reason</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{epoch}</code>&nbsp;</td>
    <td>Unix epoch; seconds since January 1, 1970</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{<em>NAME</em>}e</code>&nbsp;</td>
    <td>Contents of environment variable <em>NAME</em></td>
  </tr>

  <tr>
    <td>&nbsp;<code>%f</code>&nbsp;</td>
    <td>Absolute path of the filename stored or retrieved (not chrooted)</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%F</code>&nbsp;</td>
    <td>Filename stored or retrieved, as the client sees it</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{file-modified}</code>&nbsp;</td>
    <td>Indicates whether a file is modified (<i>i.e.</i> already exists): "true" or "false"</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{file-size}</code>&nbsp;</td>
    <td>Indicates the file size <b>after</b> data transfer, or "-" if not applicable</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{gid}</code>&nbsp;</td>
    <td>GID of authenticated user</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%g</code>&nbsp;</td>
    <td>Primary group of authenticated user</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%h</code>&nbsp;</td>
    <td>Remote client DNS name</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%H</code>&nbsp;</td>
    <td>Local IP address of vhost/server hosting/handling the session</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%I</code>&nbsp;</td>
    <td>Total number of "raw" bytes read in from network</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{iso8601}</code>&nbsp;</td>
    <td>shorthand form of <code>%{%Y-%m-%d %H:%M:%S}t,%{millisecs}</code>, <i>e.g.</i> "2013-01-30 20:14:05,670"</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%J</code>&nbsp;</td>
    <td>Command arguments received from client, <i>e.g.</i> "file.txt"</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%l</code>&nbsp;</td>
    <td>Remote username (from <code>identd</code>), or "UNKNOWN" if IdentLookup
      failed</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%L</code>&nbsp;</td>
    <td>Local IP address contacted by client</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%m</code>&nbsp;</td>
    <td>Command (method) name received from client, <i>e.g.</i> <code>RETR</code></td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{microsecs}</code>&nbsp;</td>
    <td>6 digit value of the microseconds of the current time</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{millisecs}</code>&nbsp;</td>
    <td>3 digit value of the milliseconds of the current time</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%O</code>&nbsp;</td>
    <td>Total number of "raw" bytes written out to network</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%p</code>&nbsp;</td>
    <td>Local port</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%P</code>&nbsp;</td>
    <td>Local server process ID (pid)</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{protocol}</code>&nbsp;</td>
    <td>Current protocol: "ftp", "ftps", "ssh2", "sftp", "scp"</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%r</code>&nbsp;</td>
    <td>Full command received from client</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%R</code>&nbsp;</td>
    <td>Response time, in milliseconds</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{remote-port}</code>&nbsp;</td>
    <td>Remote client port</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%s</code>&nbsp;</td>
    <td>Numeric FTP response code (status); see <a href="http://www.faqs.org/rfcs/rfc959.html">RFC 959</a> Section 4.2.1</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%S</code>&nbsp;</td>
    <td>Response message sent to client (available since 1.3.1rc1)</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%t</code>&nbsp;</td>
    <td>Current local time</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{<em>format</em>}t</code>&nbsp;</td>
    <td>Current local time using <code>strftime(3)</code> <em>format</em></td>
  </tr>

  <tr>
    <td>&nbsp;<code>%T</code>&nbsp;</td>
    <td>Time taken to transfer file, in seconds</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{transfer-failure}</code>&nbsp;</td>
    <td>Reason for data transfer failure (if applicable), or "-"</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{transfer-millisecs}</code>&nbsp;</td>
    <td>Time taken to transfer file, in milliseconds</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{transfer-port}</code>&nbsp;</td>
    <td>Remote port used for data transfer</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{transfer-status}</code>&nbsp;</td>
    <td>Status of data transfer: "success", "failed", "cancelled", "timeout", or "-"</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{transfer-type}</code>&nbsp;</td>
    <td>Data transfer type: "binary" or "ASCII" (if applicable), or "-"</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%u</code>&nbsp;</td>
    <td>Authenticated local username</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%U</code>&nbsp;</td>
    <td><code>USER</code> name originally sent by client</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{uid}</code>&nbsp;</td>
    <td>UID of authenticated user</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%v</code>&nbsp;</td>
    <td>Local server <code>ServerName</code></td>
  </tr>

  <tr>
    <td>&nbsp;<code>%V</code>&nbsp;</td>
    <td>Local server DNS name</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%{version}</code>&nbsp;</td>
    <td>ProFTPD version</td>
  </tr>

  <tr>
    <td>&nbsp;<code>%w</code>&nbsp;</td>
    <td>Absolute path for the <code>RNFR</code> path ("whence" a rename comes)</td>
  </tr>
</table>

<p>
See also: <a href="#ExtendedLog"><code>ExtendedLog</code></a>,
<a href="mod_core.html#TransferLog"><code>TransferLog</code></a>

<p>
<hr>
<h3><a name="LogOptions">LogOptions</a></h3>
<strong>Syntax:</strong> LogOptions <em>opt1 ... optN</em><br>
<strong>Default:</strong> None<br>
<strong>Context:</strong> server config, &lt;VirtualHost&gt;, &lt;Global&gt;<br>
<strong>Module:</strong> mod_core<br>
<strong>Compatibility:</strong> 1.3.7rc4 and later

<p>
The <code>LogOptions</code> directive can be used to change the format
of the <a href="#SystemLog"><code>SystemLog</code></a> messages, <i>e.g.</i>
adding/remove certain fields of data.  These options <i>also</i> apply to
all module logging; ProFTPD logging is centralized, and the
<code>LogOptions</code> are applied to any/all logging.

<p>
The options supported by the <code>LogOptions</code> directive are:
<ul>
  <li>Hostname
  <li>RoleBasedProcessLabels
  <li>Timestamp
  <li>VirtualHost
</ul>
All of these options are <em>enabled</em> by default, <i>except</i> for the
<code>RoleBasedProcessLabels</code> option.

<p>
To enable an option, preface the option name with a '+' (plus) character;
to disable the option, use a '-' (minus) character prefix.  For example:
<pre>
  # Log messages without timestamps or hostname
  LogOptions -Hostname -Timestamp
</pre>

<p>
The <code>RoleBasedProcessLabels</code> option changes the <em>label</em>
just for the PID, from <i>e.g.</i>:
<pre>
  proftpd[1234]
</pre>
to one of the following, depending on whether the process is the master
<em>daemon</em> process, or a forked <em>session</em> process:
<pre>
  daemon[2345]
  session[34567]
</pre>
This is useful, for example, when relying on <code>systemd</code> logging:
<pre>
  LogOptions -Timestamp -Hostname +RoleBasedProcessLabels
</pre>

<p>
<hr>
<h3><a name="ServerLog">ServerLog</a></h3>
<strong>Syntax:</strong> ServerLog <em>path</em>|"none"<br>
<strong>Default:</strong> None<br>
<strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
<strong>Module:</strong> mod_log<br>
<strong>Compatibility:</strong> 1.2.8rc1 and later

<p>
The <code>ServerLog</code> directive is used to configure a
<code>&lt;VirtualHost&gt;</code>-specific logfile at the given <em>path</em>,
rather than a single <a href="#SystemLog"><code>SystemLog</code></a> for the
entire configuration.

<p>
A <em>path</em> value of "none" will disable file logging for that vhost;
this can be used to override a global <code>ServerLog</code> setting.

<p>
<hr>
<h3><a name="SystemLog">SystemLog</a></h3>
<strong>Syntax:</strong> SystemLog <em>path</em>|"none"<br>
<strong>Default:</strong> None<br>
<strong>Context:</strong> server config<br>
<strong>Module:</strong> mod_log<br>
<strong>Compatibility:</strong> 1.1.6p11 and later

<p>
The <code>SystemLog</code> directive disables <code>proftpd</code>'s use of the
<code>syslog</code> mechanism and instead redirects all logging output to the
specified <em>path</em>.  The <em>path</em> should contain an absolute path,
and should not be to a file in a nonexistent directory, in a world-writable
directory, or be a symbolic link (unless
<a href="#AllowLogSymlinks"><code>AllowLogSymlinks</code></a> is set to
<em>on</em>).

<p>
Use of this directive overrides any facility set by the
<a href="mod_core.html#SyslogFacility"><code>SyslogFacility</code></a>
directive.

<p>
A <em>path</em> value of "none" will disable logging for the entire daemon.

<p>
<hr>
<h2><a name="Installation">Installation</a></h2>
The <code>mod_log</code> module is compiled by default.

<p>
<hr>
<h2><a name="Usage">Usage</a></h2>
<p>

<p><a name="FAQ">
<b>Frequently Asked Questions</b><br>

<p>
<font color=red>Question</font>: Why are successful logins no longer being
logged, after upgrading to ProFTPD 1.3.6, even though I am using the
<code>SystemLog</code> directive?<br>
<font color=blue>Answer</font>: The default log level was changed from
<code>DEBUG</code> to <code>NOTICE</code> in ProFTPD 1.3.6; see
<a href="http://bugs.proftpd.org/show_bug.cgi?id=3983">Bug#3983</a>.  And
the "Login successful" log message is logged at the <code>INFO</code> level,
which means that it will <em>not</em> be logged by default.

<p>
Why not?  The <code>INFO</code> log level is for "normal operating conditions"
(see the <a href="../howto/LogLevels.html">log levels</a> howto), and successful
logins are considered normal, and thus are not noteworthy or needed for logging.
<em>Failed</em> logins, however, <em>are</em> logged at the <code>NOTICE</code>
log level.

<p>
For having successful logins logged once more, use the following in your
<code>proftpd.conf</code>:
<pre>
  SyslogLevel INFO
</pre>

<p>
<font color=red>Question</font>: I have configured ProFTPD to use DNS names
in my <code>proftpd.conf</code> using:
<pre>
  UseReverseDNS on
</pre>
But in my <code>ExtendedLog</code>, I still see IP addresses rather than the
DNS names I expect to see.  How can that happen?<br>
<font color=blue>Answer</font>: The
<a href="#LogFormat"><code>LogFormat</code></a> <code>%h</code> is what is used
to log DNS names.  The logged value might be an IP address if ProFTPD cannot
properly verify that the client IP address resolves to a DNS name.

<p>
"Properly verifying" an IP address, in this case, means resolving the DNS name
for an IP address <em>and then resolving that DNS name back to its IP
addresses</em>:
<pre>
  $ host 10.1.2.3
  3.2.1.10.in-addr.arpa domain name pointer host.domain.example.com.
  $ host host.domain.example.com
  host.domain.example.com has address 10.4.5.6
</pre>
In this example, the IP address 10.1.2.3 does not resolve back to itself via
DNS, but rather to a <i>different</i> IP address.

<p>
If the DNS name does not resolve back to the original IP address, then that
DNS name is <b>not used</b>, as that DNS name is considered "unreliable"; only
<em>reliable</em> information is logged (and used elsewhere).  Thus ProFTPD
resorts to logging just the client IP address for the <code>%h</code> variable,
rather than the DNS name, in these situations.

<p>
<font color=red>Question</font>: How can I get the reason a client was
disconnected, for whatever reason, logged to my <code>ExtendedLog</code>?<br>
<font color=blue>Answer</font>: You can use the <code>%E</code>
<a href="#LogFormat"><code>LogFormat</code></a> variable for this, <b>in
conjunction with</b> the <code>EXIT</code> log class.

<p>
For example, assume you have configured the following:
<pre>
  MaxConnectionsPerUser 2
</pre>
and you would like your <code>ExtendedLog</code> to record when this limit
is reached.  To do this, you would use something like the following:
<pre>
  LogFormat eos "%a: user=%U disconnect_reason=\"%E\""
  ExtendedLog /var/log/proftpd/ext.log EXIT eos
</pre>
Of course, you can include other logging classes than just <code>EXIT</code>;
the above is just an example.

<p>
With the above, when the <code>MaxConnectionsPerUser</code> is reached,
your log would have a line like:
<pre>
  127.0.0.1: user=tj disconnect_reason="Denied by MaxConnectionsPerUser"
</pre>

<p>
<hr>
<font size=2><b><i>
&copy; Copyright 2002-2020 The ProFTPD Project<br>
 All Rights Reserved<br>
</i></b></font>

<hr>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit