vsftpd = login nicht möglich

Lord_Icon

Member
Benutzer angelegt:
Code:
# groupadd ftp-users
# mkdir /home/ftp-docs
# chmod 750 /home/ftp-docs
# chown root:ftp-users /home/ftp-docs
# useradd -g ftp-users -d /home/ftp-docs user1
# passwd user1 ( and of course assigned a password )

vi /etc/vsftpd.conf
Code:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022

xferlog_enable=YES
xferlog_file=/var/log/xferlog
xferlog_std_format=YES


ascii_upload_enable=YES
ascii_download_enable=YES


ls_recurse_enable=YES
connect_from_port_20=YES

chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/chrootUsers

pam_service_name=vsftpd
listen=NO

vsftp wird über xindet gestartet. Drum listen NO

vi /etc/chrootUsers
Code:
user1

vi /etc/pam.d/vsftpd
Code:
auth     required       pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth     required       pam_shells.so
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session

Selbstverständlich /etc/init.d/xindet restart durchgeführt.
Doch leider nur:
[17:26:27] Ermittle IP zu Hostnamen 123.123.123.123
[17:26:27] Verbindung mit 123.123.123.123 Port: 21
[17:26:27] Verbunden mit 123.123.123.123.
[17:26:27] 220 (vsFTPd 2.0.5)
[17:26:27] USER user1
[17:26:27] 331 Please specify the password.
[17:26:27] PASS (unsichtbar)
[17:26:28] 530 Login incorrect.
[17:26:28] QUIT
[17:26:28] 221 Goodbye.


vi /var/log/messages
Code:
May  1 17:29:18 backup-server vsftpd: pam_warn(vsftpd :auth): function=[pam_sm_authenticate] service=[vsftpd ] terminal=[ftp] user=[user1] ruser=[user1] rhost=[77.179.27.127]

Soo... Passwort ist aber 100% korrekt.
hab mit
passwd user1 nochmal neu geschrieben. und an pw test kann man nix falsch tippen :eek:
 
Back
Top