www.ProFTPD.de
13. März 2007, 22:19:06 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
News: SMF - Neu installiert!
 
  Übersicht Hilfe Suche Login Registrieren  
  Zeige Beiträge
Seiten: 1 ... 85 86 [87] 88 89 ... 107
1291  ProFTPD / ProFTPD - Deutsch / Proftpd und weiter module am: 15. Juli 2003, 14:46:57
Dann mußt du neu kompilieren.
Wenn du ein RPM installiert hast, kannst du das deinstallieren.
Außerdem müssen diverse Developmentpakete installiert sein (z.B. gcc,mysql-devel...)
 :look)  :arrow: ./configure  --with-modules=mod_sql:mod_sql_mysql .......
1292  ProFTPD / Links zu User Beiträgen / Konfigurationsviewer für mod_conf_sql am: 15. Juli 2003, 12:20:58
Script zum Anzeigen der aktuellen Konfiguration im Browser...
Code:
<?php
/************************************************
* 15.07.2003 12&#58;00 configreader@woerstenfeld.de *
************************************************/
$name         'ProFTPd Konfiguration';
$script       '/www/scripts/sql2conf.pl';
$driver       'mysql';
$datenbank    'ftp';
$user         'ftp';
$password     'ftp';
$server       'localhost';
$tempfile     '/tmp/ftp.config';
$datumsformat "d.m.Y H&#58;i&#58;s \\U\\h\\r";
$schriftart   "courier";
$normalfarbe  "#004040";
$kontextfarbe "#4040ff";
$verbose      ""//"--verbose"
$showsql      ""//"--show-sql"

   
echo "<HTML>\n<HEAD>\n<TITLE>$name</TITLE>\n</HEAD>\n<BODY onload=\"window.defaultStatus='--=$name=--';\">\n";
   
$command shell_exec&#40;"$script --dbdriver=$driver --dbname=$datenbank --dbuser=$user --dbpass=$password --dbserver=$server $verbose $showsql > $tempfile"&#41;;
   
$handle  fopen &#40;"$tempfile", "r"&#41;;
   
if &#40;$handle&#41;
       
&#123;
        
echo "<font color=\"$normalfarbe\" size=-2 face=$schriftart># Konfig aus Datenbank $datenbank@$server vom ".date&#40;$datumsformat&#41;;
        
echo "<UL>";
while &#40;!feof &#40;$handle&#41;&#41;
&#123;
         
$buffer fgets&#40;$handle, 4096&#41;;
         
$buffer nl2br&#40;htmlentities&#40;$buffer&#41;&#41;;
         // Anfang Kontext...
 if &#40; stristr&#40;$buffer,"&Global"&#41;     || 
  stristr&#40;$buffer,"&Anonymous"&#41;  || 
  stristr&#40;$buffer,"&Directory "&#41; || 
  stristr&#40;$buffer,"&Global"&#41;     || 
  stristr&#40;$buffer,"&IfClass"&#41;    || 
  stristr&#40;$buffer,"&IfDefine"&#41;   || 
  stristr&#40;$buffer,"&IfGroup"&#41;    || 
  stristr&#40;$buffer,"&IfModule"&#41;   || 
  stristr&#40;$buffer,"&IfUser"&#41;     || 
  stristr&#40;$buffer,"&Limit"&#41;      || 
  stristr&#40;$buffer,"&VirtualHost"&#41;&#41;
&#123;
                
echo "<font color=\"$kontextfarbe\"><UL>";
echo "<nobr><B>".$buffer."</B></nobr>";
                &
#125;
// Ende Kontext...
elseif &#40;stristr&#40;$buffer,"&/Global"&#41;    || 
stristr&#40;$buffer,"&/Anonymous"&#41; || 
stristr&#40;$buffer,"&/Directory"&#41; || 
stristr&#40;$buffer,"&/Global"&#41;    || 
stristr&#40;$buffer,"&/IfClass"&#41;   || 
stristr&#40;$buffer,"&/IfDefine"&#41;  || 
stristr&#40;$buffer,"&/IfGroup"&#41;   || 
stristr&#40;$buffer,"&/IfModule"&#41;  || 
stristr&#40;$buffer,"&/IfUser"&#41;    || 
stristr&#40;$buffer,"&/Limit"&#41;     || 
stristr&#40;$buffer,"&/VirtualHost"&#41;&#41;
&#123;
                
echo "<nobr><B>".$buffer."</B></nobr>";
echo "</font></UL>";
&#125;
// Normale Direktive...
else
        
&#123;
echo "<nobr>&".$buffer."</nobr>";
&#125;
&#125;
       
&#125;
    
fclose &#40;$handle&#41;;
    
unlink&#40;$tempfile&#41;;
    
echo "</BODY>\n</HTML>";
?>
1293  ProFTPD / ProFTPD - Deutsch / IP des Users anzeigen beim login . am: 15. Juli 2003, 11:53:18
Im billigsten Fall so:
Code:
#!/bin/sh
echo "Zeile1" >$1
echo "Zeile2" >>$1
echo "Zeile3" >>$1
echo "Zeile..." >>$1
echo "Zeile14" >>$1
echo "Deine IP ist: $2" >>$1
echo "Zeile16" >>$1

oh graus  :wink:
1294  ProFTPD / ProFTPD - Deutsch / ERROR 1045: Access denied for user: 'root@localhost' am: 15. Juli 2003, 10:54:17
Code:
/etc/init.d/mysqld restart
1295  ProFTPD / ProFTPD - Deutsch / ERROR 1045: Access denied for user: 'root@localhost' am: 15. Juli 2003, 09:58:09
Zitat von: "Kellerkind"
[] ./bin/mysql_install_db ausgeführt ?

 :?:
1296  ProFTPD / ProFTPD - Deutsch / ERROR 1045: Access denied for user: 'root@localhost' am: 15. Juli 2003, 09:12:15
:wait)
1297  ProFTPD / ProFTPD - Deutsch / ERROR 1045: Access denied for user: 'root@localhost' am: 15. Juli 2003, 08:32:55
:look)
Code:
mysql
GRANT ALL PRIVILEGES ON datenbankname.* TO 'testusr'@'%' IDENTIFIED BY 'Paßwort' WITH GRANT OPTION;
FLUSH PRIVILEGES;
\q
mysql datenbankname -u testusr -pPaßwort
1298  ProFTPD / ProFTPD - Deutsch / mod_conf_sql am: 14. Juli 2003, 22:25:49
Meine proftpd.conf sieht jetzt so aus:
Code:
Include sql://ftp:ftp@localhost/db:ftp/ctxt:ftpctxt/conf:ftpconf/map:ftpmap

 :lol:
1299  ProFTPD / ProFTPD - Deutsch / prob mit mod_sql am: 14. Juli 2003, 21:36:45
Na dann mal das Paket mysql-devel installieren.
 :look)
1300  ProFTPD / ProFTPD - Deutsch / prob mit mod_sql am: 14. Juli 2003, 21:00:53
Probier mal:
./configure --with-modules=mod_sql:mod_sql_mysql...... --with-includes=/usr/include/mysql --with-libraries=/usr/lib/mysql
1301  ProFTPD / ProFTPD - Deutsch / IP des Users anzeigen beim login . am: 14. Juli 2003, 13:54:11
Jepp. Mit %a bei mod_exec
proftpd.conf
Code:
ExecEngine on
ExecOnConnect /pfad/zum/script/makeDisplayConnect.sh /pfad/zum/.DisplayConnect.msg %a
DisplayConnect /pfad/zum/.DisplayConnect.msg

Script makeDisplayConnect.sh:
Code:
#!/bin/sh
echo "Deine IP ist: $2" >$1

Sieht so aus:
Code:
.(401)Node1> ftp 10.138.131.75
Connected to 10.138.131.75.
220-Deine IP ist: 10.138.142.11
220 NetxiraOne - FTP-Server
Name (10.138.131.75:mtcl):  
1302  ProFTPD / ProFTPD - Deutsch / Momentane Up und Downloads biem login anzeigen am: 14. Juli 2003, 13:17:20
:twisted:
1303  ProFTPD / www.proftpd.de / Shifttaste defekt? am: 14. Juli 2003, 13:16:15
1304  ProFTPD / www.proftpd.de / Shifttaste defekt? am: 14. Juli 2003, 13:09:36
Ist deine Shifttaste defekt?
siehe Neue Module
1305  ProFTPD / ProFTPD - Deutsch / Momentane Up und Downloads biem login anzeigen am: 14. Juli 2003, 12:55:47
Zitat von: "guden"
Übertragungsrate nicht angezeigt..

Na dann mach's halt ohne
Code:
|/bin/grep 's]'

oder so:
Code:
|/bin/grep -v 'server:' |/bin/grep -v 'client:' |/bin/grep -v 'Service class'  

sieht so aus:
Code:
Name (kb.de.nx1:root): [root@knowledgebase root]# ftp kb.de.nx1
Connected to kb.de.nx1 (10.138.131.75).
220-Willkommen!
220----------------------------------------
220-standalone FTP daemon [17824], up for  1 hr 13 min
220-26755 anonymous [ 5m35s]  5m31s idle
220-    location: /
220-
220-27204 cw       [ 1m43s]  1m43s idle
220-    location: /
220-
220-27236 tacdata  [ 1m30s] (n/a) STOR eCC-R1_0_4_1-V3_10_24.exe
220-    KB/s: 626.16
220-    location: /uploads
220-
220-27206 cw       [ 1m41s] ( 12%) RETR eCC-R1_0_4_1-V3_10_24.exe
220-    KB/s: 2111.58
220-    location: /
220-
220----------------------------------------
220 NetxiraOne - FTP-Server  
Seiten: 1 ... 85 86 [87] 88 89 ... 107
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS
Seite erstellt in 0.085 Sekunden mit 15 Zugriffen.