• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

vsftpd konfiguriert, kann mich aber nicht anmelden

_PASCAL_

Member
Hi,

ich habe meinen Linux PC wie in folgendem HOWTO eingerichtet

ich habe alles so gemacht wie im HOWTO beschrieben:

http://www.nulldevice.eu/vsftpd

meine /etc/vsftpd.conf

Code:
dirmessage_enable=YES
guest_enable=YES
guest_username=someuser
user_sub_token=$USER
write_enable=YES
anon_mkdir_write_enable=YES
anon_upload_enable=YES
nopriv_user=ftpsecure
ftpd_banner="Welcome to MY_HOSTNAME"
hide_ids=YES
local_enable=YES
chroot_local_user=YES
anonymous_enable=NO
anon_world_readable_only=YES
pam_service_name=vsftpd
(was mir aufgefallen ist, da fehlt "listen=NO")

meine /etc/pam.d/vsftpd
Code:
#%PAM-1.0
auth    required pam_pwdfile.so pwdfile /etc/ftp/users
account required pam_permit.so

meine /etc/ftp/users (mit htpasswd2 erstellt)
Code:
PASCAL:$apr1$NburO/..$4XLEJrG/FUl3J91dTC9AD.
MADELEINE:$apr1$g05tH...$aL4QpnNpfPMJtzOB4jWvT.
pascal:$apr1$/lkie/..$8Aj8mjSYSzbav.p5wtPid/

und meine /etc/passwd
Code:
at:x:25:25:Batch jobs daemon:/var/spool/atjobs:/bin/bash
beagleindex:x:102:104:User for Beagle indexing:/var/cache/beagle:/bin/bash
bin:x:1:1:bin:/bin:/bin/bash
daemon:x:2:2:Daemon:/sbin:/bin/bash
ftp:x:40:49:FTP account:/srv/ftp:/bin/bash
games:x:12:100:Games account:/var/games:/bin/bash
gdm:x:104:106:Gnome Display Manager daemon:/var/lib/gdm:/bin/false
haldaemon:x:101:102:User for haldaemon:/var/run/hal:/bin/false
lp:x:4:7:Printing daemon:/var/spool/lpd:/bin/bash
mail:x:8:12:Mailer daemon:/var/spool/clientmqueue:/bin/false
man:x:13:62:Manual pages viewer:/var/cache/man:/bin/bash
mdnsd:x:78:65534:mDNSResponder runtime user:/var/lib/mdnsd:/bin/false
messagebus:x:100:101:User for D-Bus:/var/run/dbus:/bin/false
news:x:9:13:News system:/etc/news:/bin/bash
nobody:x:65534:65533:nobody:/var/lib/nobody:/bin/bash
ntp:x:74:103:NTP daemon:/var/lib/ntp:/bin/false
postfix:x:51:51:Postfix Daemon:/var/spool/postfix:/bin/false
root:x:0:0:root:/root:/bin/bash
sshd:x:71:65:SSH daemon:/var/lib/sshd:/bin/false
suse-ncc:x:103:105:Novell Customer Center User:/var/lib/YaST2/suse-ncc-fakehome:/bin/bash
uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
heinrich:x:1000:100:Pascal Heinrich:/home/heinrich:/bin/bash
ftpsecure:x:105:100::/var/run/vsftpd/:/bin/false
PASCAL:x:106:100::/home/virtual/FTP/PASCAL:/bin/false
someuser:x:1234:100:Virtual FTP User 
Account:/home/virtual/FTP:/bin/false

die letzten 4 einträge der passwd habe ich erstellt

pam_pwdfile.so und Linux PAM hab ich wie beschrieben ausgeführt
(muss ich das kompilieren nochmals ausführen wenn ich etwas veränder habe ?)


aber wenn ich jetzt im terminal

ftp localhost eingebe kommt folgendes:

Code:
linux-server:~ # ftp localhost
Trying 127.0.0.1...
Connected to localhost.
220 "Welcome to MY_HOSTNAME"
Name (localhost:root): pascal
331 Please specify the password.
Password:
530 Login incorrect.
ftp: Login failed.
 
OP
P

_PASCAL_

Member
hmm keiner eine idee ? :wink:

also ich habe etwas geändert habe einen benutzer mit dem namen "virtualftp" angelegt und den dann bei

guest_username=virtualftp eingetippt

das home verzeichniss von virtualftp lautet:

/home/virtual/$USER

das problem ist aber immernoch dass ich mich nicht anmelden kann weil der ftp server möglicherweise nicht über pam.d auf die /etc/ftp/users datei zugreift.
 
OP
P

_PASCAL_

Member
im logfile steht:

Code:
Sat Jul 14 16:24:29 2007 [pid 22367] CONNECT: Client "127.0.0.2"
Sat Jul 14 16:25:50 2007 [pid 22369] CONNECT: Client "192.168.123.179"
Sat Jul 14 16:25:50 2007 [pid 22368] [anonymous] FAIL LOGIN: Client "192.168.123.179"
Sat Jul 14 16:27:59 2007 [pid 22376] CONNECT: Client "192.168.123.179"
Sat Jul 14 16:27:59 2007 [pid 22375] [anonymous] FAIL LOGIN: Client "192.168.123.179"
Sat Jul 14 16:28:10 2007 [pid 22375] [testuser] FAIL LOGIN: Client "192.168.123.179"
Sat Jul 14 16:30:43 2007 [pid 22366] [testuser] FAIL LOGIN: Client "127.0.0.2"
Sat Jul 14 16:31:22 2007 [pid 22366] [testuser] FAIL LOGIN: Client "127.0.0.2"
Sat Jul 14 16:34:42 2007 [pid 22424] CONNECT: Client "127.0.0.2"
Sat Jul 14 16:34:49 2007 [pid 22423] [testuser] FAIL LOGIN: Client "127.0.0.2"
Sat Jul 14 16:41:22 2007 [pid 22516] CONNECT: Client "127.0.0.2"
Sat Jul 14 16:41:40 2007 [pid 22515] [ftpuser] FAIL LOGIN: Client "127.0.0.2"
Sat Jul 14 16:42:20 2007 [pid 22523] CONNECT: Client "127.0.0.2"
Sat Jul 14 16:42:30 2007 [pid 22522] [ftpuser] FAIL LOGIN: Client "127.0.0.2"
Sat Jul 14 16:44:52 2007 [pid 22563] CONNECT: Client "127.0.0.2"
Sat Jul 14 16:45:01 2007 [pid 22562] [root] FAIL LOGIN: Client "127.0.0.2"
Sat Jul 14 16:45:34 2007 [pid 22588] CONNECT: Client "127.0.0.2"
Sat Jul 14 16:45:48 2007 [pid 22587] [ftpuser] FAIL LOGIN: Client "127.0.0.2"
Sat Jul 14 16:46:00 2007 [pid 22591] CONNECT: Client "192.168.123.179"
Sat Jul 14 16:46:00 2007 [pid 22590] [anonymous] FAIL LOGIN: Client "192.168.123.179"
Sat Jul 14 16:46:14 2007 [pid 22590] [ftpuser] FAIL LOGIN: Client "192.168.123.179"
Sat Jul 14 17:08:06 2007 [pid 22633] CONNECT: Client "192.168.123.136"
Sat Jul 14 17:08:06 2007 [pid 22632] [anonymous] FAIL LOGIN: Client "192.168.123.136"
Sat Jul 14 17:36:34 2007 [pid 27195] CONNECT: Client "127.0.0.2"
Sat Jul 14 17:37:43 2007 [pid 27206] CONNECT: Client "192.168.123.179"
Sat Jul 14 17:37:45 2007 [pid 27205] [anonymous] FAIL LOGIN: Client "192.168.123.179"
Sat Jul 14 17:42:53 2007 [pid 27194] [/etc/init.d/xinetd restart] FAIL LOGIN: Client "127.0.0.2"
Sat Jul 14 18:28:55 2007 [pid 27892] CONNECT: Client "127.0.0.1"
Sat Jul 14 18:29:06 2007 [pid 27891] [PASCAL] FAIL LOGIN: Client "127.0.0.1"
 

Yehudi

Guru
Und hier:
http://www.linux-club.de/faq/Vsftpd
und hier:
http://www.linux-club.de/faq/Vsftpd_Musterkonfigurationen
auch schon gelesen?
 
OP
P

_PASCAL_

Member
hmm danke


aber das problem ist ja dass ich es versucht habe nach dem anderen HOWTO mit viruellen USER konfiguriert habe.

ich weis nicht was falsch ist aber bestimmt nur eine kleinigkeit

weil ich hab alles nach dem HOWTO gemacht und hab mich auch in die einzelnen sachen eingelesen.

eigentlich müsste es so funktionieren... :?
 
Oben