Quote:
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_umask=077
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=ftp
xferlog_std_format=YES
pam_service_name=ftp
listen=YES
tcp_wrappers=YES
guest_enable=YES
guest_username=ftp
local_root=/ftp
anon_other_write_enable=YES
chroot_local_user=YES
virtual_use_local_privs=YES
|
with this setting you are trying to log in using anonymous user
so you should know that by default anonymous user is not allowed to login on any directory having write permission
so you default login directory inside
should not have write access
once our anonymous user logs in then he will not be able to create any file or directory
so for this reason create a directory inside pub with full permission
Code:
#mkdir /var/ftp/pub/upload
#chmod 777 /var/ftp/pub/upload
or make sure to give relevant permission as per your use with write permission enabled
so once the anonymous user logs in
Code:
ftp ftp.dummy.com
Connected to ftp.dummy.com.
220 (vsFTPd 2.0.3)
Name (ftp.dummy.com):steffentchr): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
226 Directory send OK.
ftp>pwd
ftp>/var/ftp
ftp>dir
pub
upload
ftp>cd upload
ftp>mkdir test
ftp>dir
test