cat /etc/vsftpd.conf:
listen=YES
anonymous_enable=NO
local_enable=YES
virtual_use_local_privs=YES
write_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
guest_enable=YES
user_sub_token=$USER
local_root=/var/www/$USER
chroot_local_user=YES
hide_ids=YES
syslog_enable=YES
log_ftp_protocol=YES
cat /etc/pam.d/vsftpd
auth required pam_pwdfile.so pwdfile /etc/vsftpd/passwd
account required pam_permit.so
Пробую создать каталог на локальной машине:
localhost:~# ftp localhost
Connected to localhost.
220 (vsFTPd 2.0.7)
Name (localhost:root): user
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> mkdir test33232
257 "/test33232" created
ftp> quit
221 Goodbye.
iptables-save v1.4.2: Unable to open /proc/net/ip_tables_names: No such file or directory
-> TYPE A
200 Switching to ASCII mode.
-> PORT 192,168,2,7,107,36
200 PORT command successful. Consider using PASV.
-> STOR /Gemfile
550 Access is denied.