I have installed vsftpd ftp server on my ubuntu and I can connect only with the admin user (the user that can be sudoed). Also when I'm connecting via ftp I see the home directory of the admin
user and not the home dir of the ftp
user. For all other system users I receive a 530 Login incorrect
error when trying to connect.
Any idea what I've been doing wrong?
The home dir of the ftp
user is \srv\ftp
:
drwxr-xr-x 2 root ftp 4096 sep 26 12:13 ftp
This are my config files:
# /etc/vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=NO
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
# Standard behaviour for ftpd(8).
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
# Note: vsftpd handles anonymous logins on its own. Do not enable pam_ftp.so.
# Standard pam includes
@include common-account
@include common-session
@include common-auth
auth required pam_shells.so
# /etc/ftpusers: list of users disallowed FTP access. See ftpusers(5).
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
nobody
ftp