www.ProFTPD.de
13. März 2007, 19:34: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  
Seiten: [1]   Nach unten
  Drucken  
Autor Thema: Login / anonymer Logion klappt nicht  (Gelesen 366 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
BrainCrusher
ProFTPD
*
Offline Offline

Beiträge: 4


Profil anzeigen
« am: 05. November 2003, 19:47:50 »

Ich könnte durchdrehen Traurig zum Glück gibt es hier ja ein gutes Supportforum, aber auch die Suche nach meinen Problem hatte mich nicht weitergebracht.

Nun gut ich habe seit ein paar Tagen einen eigeen Rootserver von Hetzner
Apache, Mysql etc bereits eingerichtet nun möchte ich hatte es 1 zu 1 nach dieser Anleitung gemacht

***************
* 21. FXP-FTP *
***************


======= BASH =======
# cd /usr/local/src
# wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.9rc1.tar.gz
# tar xvzf proftpd-1.2.9rc1.tar.gz
# cd proftpd-1.2.9rc1
# ./configure
# make
# make install
# mkdir /var/local/fxp
# cd /usr/sbin
# wget http://www.castaglia.org/proftpd/contrib/ftpasswd
# chmod a+x ftpasswd
# cd /usr/local/etc
# ftpasswd --passwd --name ftpviewer -uid 1001 -shell /bin/false -home /var/local/fxp
# ftpasswd --passwd --name ftpwriter -uid 1002 -shell /bin/false -home /var/local/fxp
# ftpasswd --passwd --name ftpuser -uid 1003 -shell /bin/false -home /var/local/fxp
# ftpasswd --passwd --name daniel -uid 1004 -shell /bin/false -home /var/local/fxp
# ftpasswd --passwd --name maxx -uid 1005 -shell /bin/false -home /var/local/fxp
# ftpasswd --group --gid 1001 -name ftpviewer
# ftpasswd --group --gid 1002 -name ftpwriter
# ftpasswd --group --gid 1003 -name ftpuser
# ftpasswd --group --gid 1004 -name ftpleecher
# mcedit /usr/local/etc/proftpd.conf
Hier eine Beispielkonfiguration, wie ihrs wollt müsst ihr selber wissen  
# proftpd
=====================


Das klappte soweit theoretisch gut, nur weder als anonymer noch als registrierten user account komme ich auf den ftp server.

Hab jetzt schon einige Stunden probiert und gebe es langsam auf.

Hier die Config Files einmal vom  proftpd.conf


Code:
ServerName "-=[Keerthan's Underground FTP Server]=-"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
Umask 022

MaxInstances 30

User ftpuser
Group ftpuser
SystemLog /var/log/proftpd.log
TransferLog /var/log/transfer.log
DeferWelcome off
#===========
#TimeoutIdle 600
TimeoutLogin 30
#===========
#===========

RequireValidShell off
User ftpuser
Group ftpuser
UserAlias anonymous ftp

MaxClients 5
DisplayLogin "welcome.msg"
AccessGrantMsg "Guest access granted for %u."


#upload

#DisplayFirstChdir /underground/ftp/welcome.msg



User und Usergruppe sind angelegt ich habe eben nochmal geguckt in der passwordfile hat er auch meinen user angelegt inklusive meiner angaben, aber das passwort ist inkorrekt schreibt er daurend.



Zitat
debian:~# proftpd -n -d9
 - parsing '/usr/local/etc/proftpd.conf' configuration
 - FS: using system open()
 - FS: using system read()
 - dispatching auth request "getpwnam" to module mod_auth_file
 - dispatching auth request "getpwnam" to module mod_auth_unix
 - dispatching auth request "getgrnam" to module mod_auth_file
 - dispatching auth request "getgrnam" to module mod_auth_unix
 - ROOT PRIVS at mod_log.c:459
 - RELINQUISH PRIVS at mod_log.c:481
 - dispatching auth request "getpwnam" to module mod_auth_file
 - dispatching auth request "getpwnam" to module mod_auth_unix
 - dispatching auth request "getgrnam" to module mod_auth_file
 - dispatching auth request "getgrnam" to module mod_auth_unix
 - FS: using system read()
 - FS: using system close()
192.168.0.112 -
192.168.0.112 - Config for -=[Keerthan's Underground FTP Server]=-:
192.168.0.112 - DefaultServer
192.168.0.112 - Umask
192.168.0.112 - UserID
192.168.0.112 - UserName
192.168.0.112 - GroupID
192.168.0.112 - GroupName
192.168.0.112 - TransferLog
192.168.0.112 - DeferWelcome
192.168.0.112 - TimeoutLogin
192.168.0.112 - RequireValidShell
192.168.0.112 - UserID
192.168.0.112 - UserName
192.168.0.112 - GroupID
192.168.0.112 - GroupName
192.168.0.112 - UserAlias
192.168.0.112 - MaxClients
192.168.0.112 - DisplayLogin
192.168.0.112 - AccessGrantMsg
192.168.0.112 - dispatching auth request "getgroups" to module mod_auth_file
192.168.0.112 - dispatching auth request "getgroups" to module mod_auth_unix
192.168.0.112 - SETUP PRIVS at main.c:2714
192.168.0.112 - ROOT PRIVS at main.c:1956
192.168.0.112 - RELINQUISH PRIVS at main.c:1962
192.168.0.112 - ROOT PRIVS at main.c:2323
192.168.0.112 - opening scoreboard '/usr/local/var/proftpd/proftpd.scoreboard'
192.168.0.112 - RELINQUISH PRIVS at main.c:2347
192.168.0.112 - ROOT PRIVS at inet.c:452
192.168.0.112 - RELINQUISH PRIVS at inet.c:510
192.168.0.112 - ProFTPD 1.2.9rc3 (devel) (built Wed Nov 5 14:53:24 CET 2003) standalone mode STARTUP
192.168.0.112 - ROOT PRIVS at main.c:2171
192.168.0.112 - RELINQUISH PRIVS at main.c:2177
192.168.0.112 - FS: using system lstat()
[/code]
Logge ich mich ein kommt:


Code:

debian:~# proftpd -n -d5
 - parsing '/usr/local/etc/proftpd.conf' configuration
192.168.0.112 -
192.168.0.112 - Config for -=[Keerthan's Underground FTP Server]=-:
192.168.0.112 - DefaultServer
192.168.0.112 - Umask
192.168.0.112 - UserID
192.168.0.112 - UserName
192.168.0.112 - GroupID
192.168.0.112 - GroupName
192.168.0.112 - TransferLog
192.168.0.112 - DeferWelcome
192.168.0.112 - TimeoutLogin
192.168.0.112 - RequireValidShell
192.168.0.112 - UserID
192.168.0.112 - UserName
192.168.0.112 - GroupID
192.168.0.112 - GroupName
192.168.0.112 - UserAlias
192.168.0.112 - MaxClients
192.168.0.112 - DisplayLogin
192.168.0.112 - AccessGrantMsg
192.168.0.112 - ProFTPD 1.2.9rc3 (devel) (built Wed Nov 5 14:53:24 CET 2003) standalone mode STARTUP
192.168.0.112 (80.129.250.71[80.129.250.71]) - connected - local  : 213.239.197.35:21
192.168.0.112 (80.129.250.71[80.129.250.71]) - connected - remote : 80.129.250.71:4766
192.168.0.112 (80.129.250.71[80.129.250.71]) - FTP session opened.
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'USER ftpuser' to mod_core
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'USER ftpuser' to mod_core
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'USER ftpuser' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching CMD command 'USER ftpuser' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching LOG_CMD command 'USER ftpuser' to mod_log
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching CMD command 'PASS (hidden)' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - USER ftpuser (Login failed): Incorrect password.
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - FTP session closed.


Das ganze ist sehr frustrierend immerhin habe ich die passwort file leer gemacth den user neu angelegt und es geht trotzdem nicht Traurig.

Details: Debian 3 alles mit apt-get gezogen ausser proftpd  :lol:
Gespeichert
BrainCrusher
ProFTPD
*
Offline Offline

Beiträge: 4


Profil anzeigen
« Antwort #1 am: 05. November 2003, 19:52:24 »

Habs jetzt mit apt-get probiert und immerhin ich schaffe es anonym mich einzuloggen sehe jedoch nix nun ja .
Gespeichert
BrainCrusher
ProFTPD
*
Offline Offline

Beiträge: 4


Profil anzeigen
« Antwort #2 am: 05. November 2003, 20:32:16 »

Ich hab jetzt nach Anleitung von
http://www.debianhowto.de/howtos/de/webconfig/webconfig_umgebung.html#useradd

Die Gruppe Ftp angelegt
den User Hardtalk

und wenn ich ins dir von  /var/www/ seh ich das verzeichnis auch.


Die Unterverzeichnisse sind auch angelegt
useradd -g ftp -d /var/www/hardtalk -s /bin/ftp -m hardtalk

chown user1.www-data /var/www/hardtalk

chmod 750 /var/www/hardtalk

mkdir -p /var/www/hardtalk/hardtalk-1.tld/{cgi-bin,html,temp}
debian:~# chmod 770 /var/www/hardtalk/hardtalk-1.tld/temp
debian:~# mkdir -p /var/www/hardtalk/hardtalk-2.tld/{cgi-bin,html,temp}
debian:~# chmod 770 /var/www/hardtalk/hardtalk-2.tld/temp


Soweit so gut der Usergruppe FTP habe ich sie zugewuiesen

chown -R hardtalk.ftp /var/www/hardtalk/*
chown -R user2.ftpuser /var/www/hardtalk/*

Nun wirds spannend:

Ich halte mich an http://www.debianhowto.de/howtos/de/proftpd/proftpd_howto.html#proftpdinstall und lege die Usergroup FTP an nun den User hardtalk

usermod -G ftp hardtalk

Alles okay bis hierhin!!!

Meine Config ändere ich ab auf:


Code:
login as: root
Sent username "root"
root@213.239.197.35's password:
Last login: Wed Nov  5 19:41:35 2003 from p5081fa47.dip.t-dialin.net on pts/0
Linux debian 2.4.20 #1 Fri Oct 24 10:31:56 CEST 2003 i686 unknown

Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the individual files in /usr/share/doc/*/copyright

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Wed Nov  5 19:41:35 2003 from p5081fa47.dip.t-dialin.net
debian:~# proftpd -n -d5
 - parsing '/usr/local/etc/proftpd.conf' configuration
192.168.0.112 -
192.168.0.112 - Config for -=[Keerthan's Underground FTP Server]=-:
192.168.0.112 - DefaultServer
192.168.0.112 - Umask
192.168.0.112 - UserID
192.168.0.112 - UserName
192.168.0.112 - GroupID
192.168.0.112 - GroupName
192.168.0.112 - TransferLog
192.168.0.112 - DeferWelcome
192.168.0.112 - TimeoutLogin
192.168.0.112 - RequireValidShell
192.168.0.112 - UserID
192.168.0.112 - UserName
192.168.0.112 - GroupID
192.168.0.112 - GroupName
192.168.0.112 - UserAlias
192.168.0.112 - MaxClients
192.168.0.112 - DisplayLogin
192.168.0.112 - AccessGrantMsg
192.168.0.112 - ProFTPD 1.2.9rc3 (devel) (built Wed Nov 5 14:53:24 CET 2003) sta
ndalone mode STARTUP
192.168.0.112 (80.129.250.71[80.129.250.71]) - connected - local  : 213.239.197.
35:21
192.168.0.112 (80.129.250.71[80.129.250.71]) - connected - remote : 80.129.250.7
1:4766
192.168.0.112 (80.129.250.71[80.129.250.71]) - FTP session opened.
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'USER
 ftpuser' to mod_core
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'USER
 ftpuser' to mod_core
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'USER
 ftpuser' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching CMD command 'USER ftp
user' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching LOG_CMD command 'USER
 ftpuser' to mod_log
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'PASS
 (hidden)' to mod_core
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'PASS
 (hidden)' to mod_core
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching PRE_CMD command 'PASS
 (hidden)' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching CMD command 'PASS (hi
dden)' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - USER ftpuser (Login failed): Inco
rrect password.
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching LOG_CMD_ERR command '
PASS (hidden)' to mod_log
192.168.0.112 (80.129.250.71[80.129.250.71]) - dispatching LOG_CMD_ERR command '
PASS (hidden)' to mod_auth
192.168.0.112 (80.129.250.71[80.129.250.71]) - FTP session closed.

debian:~# proftpd -n -d5
 - parsing '/usr/local/etc/proftpd.conf' configuration
192.168.0.112 -
192.168.0.112 - Config for -=[Keerthan's Underground FTP Server]=-:
192.168.0.112 - DefaultServer
192.168.0.112 - Umask
192.168.0.112 - UserID
192.168.0.112 - UserName
192.168.0.112 - GroupID
192.168.0.112 - GroupName
192.168.0.112 - TransferLog
192.168.0.112 - DeferWelcome
192.168.0.112 - TimeoutLogin
192.168.0.112 - RequireValidShell
192.168.0.112 - UserID
192.168.0.112 - UserName
Debian Configuration





   ┌───────────────────────┤ ProFTPd configuration ├────────────────────────┐
   │                                                                        │
   │ Enabling anonymous access grants access to your ftp site by any user,  │
   │ without being a system user.  This is probably not a good idea for     │
   │ paranoid sysadmins.  Only enable if you know what it does.             │
   │                                                                        │
   │ Enable anonymous access?                                               │
   │                                                                        │
   │                   <Yes>                      <No>                      │
   │                                                                        │
   └────────────────────────────────────────────────────────────────────────┘






(Reading database ... 13171 files and directories currently installed.)
Removing vsftpd ...
Selecting previously deselected package proftpd-common.
(Reading database ... 13149 files and directories currently installed.)
Unpacking proftpd-common (from .../proftpd-common_1.2.4+1.2.5rc1-5woody2_i386.de
b) ...
Selecting previously deselected package proftpd.
Unpacking proftpd (from .../proftpd_1.2.4+1.2.5rc1-5woody2_i386.deb) ...
Setting up xinetd (2.3.4-1.2) ...
Stopping internet superserver: xinetd.
Leaving `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd'
Backed up your existing configuration into /etc/xinetd.conf.backed-up
Line 2: socket type missing
dpkg: error processing xinetd (--configure):
 subprocess post-installation script returned error exit status 1
Debian Configuration

   GNU nano 1.0.6                 File: /usr/local/etc/proftpd.conf                    Modified

User braincrusher
Group ftp
SystemLog /var/log/proftpd.log
TransferLog /var/log/transfer.log
DeferWelcome off
#===========
#TimeoutIdle 600
TimeoutLogin 30
#===========

RequireValidShell off
User  braincrusher
Group ftpx
UserAlias anonymous ftp

MaxClients 5
DisplayLogin "welcome.msg"
AccessGrantMsg "Guest access granted for %u."


#upload

#DisplayFirstChdir /underground/ftp/welcome.msg







debian:~# useradd -g ftp -d /var/www/braincrusher-s /bin/ftp -m braincrusher
useradd: unknown group ftp
debian:~# groupadd
usage: groupadd [-g gid [-o]] group
debian:~# groupadd ftp
debian:~# useradd -g ftp -d /var/www/braincrusher-s /bin/ftp -m braincrusher
usage: useradd  [-u uid [-o]] [-g group] [-G group,...]
                [-d home] [-s shell] [-c comment] [-m [-k template]]
                [-f inactive] [-e expire ] [-p passwd] name
       useradd  -D [-g group] [-b base] [-s shell]
                [-f inactive] [-e expire ]
debian:~# useradd -g ftp -d /var/www/braincrusher-s /bin/ftp -m braincrusher
usage: useradd  [-u uid [-o]] [-g group] [-G group,...]
                [-d home] [-s shell] [-c comment] [-m [-k template]]
                [-f inactive] [-e expire ] [-p passwd] name
       useradd  -D [-g group] [-b base] [-s shell]
                [-f inactive] [-e expire ]
debian:~# useradd -g ftpuser -d /var/www/user1 -s /bin/ftp -m user1
useradd: user user1 exists
debian:~# useradd -g ftpuser -d /var/www/user1 -s /bin/ftp -m user1
useradd: user user1 exists
debian:~# useradd -g ftpuser -d /var/www/user2 -s /bin/ftp -m user2
debian:~# useradd -g ftp -d /var/www/hardtalk -s /bin/ftp -m hardtalk
   GNU nano 1.0.6                 File: /usr/local/etc/proftpd.conf                    Modified

# This is a basicftpuser

Dies entspricht bis auf der gruppe ftp statts ftpuser und hardtalk statts ftpuser der Beispielvorlage  von debianhowto.

Anschliessend habe ich
cp /bin/false /bin/ftp
echo "/bin/ftp" >> /etc/shells

eingegeben.

Eigentlich alles richtig gemacht?
Okay und zu guter letzt noch für proftpd user hardtalk anlegen für die gruppe ftp danach sollte es gehen richtig?
Gespeichert
BrainCrusher
ProFTPD
*
Offline Offline

Beiträge: 4


Profil anzeigen
« Antwort #3 am: 05. November 2003, 23:10:52 »

Toll und jetzt funktioniert nicht mal mehr anonymer ftp zugang *lol*.

Hatte jetzt versucht das Teil komplett zu deinstallieren was apt-get eingerichtet hat.

Danach neu installiert aber er hat einfach die alte proftpd.conf benutzt hab die also aus sdem /etc und dem /usr/local/etc gelöscht danach wollte das ding nicht mehr starten, dachte apt-get install würde es richten fehlgeschlagen Traurig nun habe ich die alte kopie ins etc gespeichert mit neuen namen dachte okay das wars jetzt aber der will die file in 2 verzeichnissen haben, ist das richtig? EINE Configurationsdatei in 2 verschiedenen Ordnern? Vorallem finde ich lustig das der die beiden configs mischt. Heisst die eine Server Title Debian die andere Mein Server macht der beim versuch sich einzuloggen debian meinserver

Ist das normal oder liegt es daran das ich es mal per wget ... und säter per apt-get installiert habe?

Nun gut ich verzweifel hier ich möchte ungern jetzt schon mit mysql datenbank arbeiten, da ich erst den ftp einrichten will dann webadmin und dann phpmyadmin.
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #4 am: 06. November 2003, 07:36:12 »

Zitat von: "BrainCrusher"
Toll und jetzt funktioniert nicht mal mehr anonymer ftp zugang *lol*.

[...]

Ist das normal oder liegt es daran das ich es mal per wget ... und säter per apt-get installiert habe?


so viel text :)  ... Wo fangen wir an ?

a) Bei Debian bitte NICHT Apt-get für ProFTPD benutzen. Der Maintainer schafft es irgendwie nicht eine aktuelle Version bereit zu stellen. Also Quellcode saugen, ./configure && make && make install.....

b) zu dem Problem. Deiner erste Mail war ja schon fast 100% richtig. Anschliessend bin ich nicht mehr durchgestiegen... Ich sehe jedoch in Deiner ProFTPD.conf KEINEN Hinweis auf ein Password File - wie soll ProFTPD denn wissen, was es nutzen soll ?

cu
stonki
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Seiten: [1]   Nach oben
  Drucken  
 
Gehe zu:  

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.075 Sekunden mit 19 Zugriffen.