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
(was mir aufgefallen ist, da fehlt "listen=NO")
meine /etc/pam.d/vsftpd
meine /etc/ftp/users (mit htpasswd2 erstellt)
und meine /etc/passwd
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:
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
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.