0

I am using vsftpd daemon for ftp server and configured the server for local users listed in /etc/vsftpd.users. Using filezilla for ftp client and I am getting "553: could not write file" error when I try to upload the file.

vsftpd.conf file is as follows:

background=YES
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
allow_writeable_chroot=YES
local_umask=022
local_root=/mnt/
userlist_deny=NO
userlist_enable=YES
userlist_file=/etc/vsftpd.allowed_users
chroot_local_user=YES
chown_uploads=YES
anon_other_write_enable=YES
check_shell=NO
dirmessage_enable=YES
#dirmessage_enable=YES
#ftpd_banner=Welcome to blah FTP service.
session_support=YES
syslog_enable=YES
#userlist_enable=YES
#userlist_deny=NO
#userlist_file=/etc/vsftpd.users
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
###
### TLS/SSL options
### example key generation: openssl req -x509 
#ssl_enable=YES
#allow_anon_ssl=NO
#force_local_data_ssl=NO
#force_local_logins_ssl=NO
#ssl_tlsv1=YES
#ssl_sslv2=NO
#ssl_sslv3=NO
#rsa_cert_file=/etc/config/vsftpd_cert.pem
#rsa_private_key_file=/etc/config/vsftpd_privkey.pem

Can anyone tell me , do I have to configure for ftp upload for local users?

Regards, Sowmya

  • 3 things to debug: check for useful error messages in /var/log/vsftpd.log, check if the user file-system permissions are correct and confirm you have configured your firewall correctly for the FTP. – HBruijn Jun 6 '15 at 12:37
  • And your combination of userlist* directives requires users to be listed in /etc/vsftpd.allowed_users to be allowed FTP access, if I read things correctly. – HBruijn Jun 6 '15 at 12:43
  • Please post relevant log messages, as reported via the logread command. Also, tell us the content of /etc/vsftpd.allowed_users and the username you are connecting with, from your FileZilla. Let us also know what do you have under /mnt: an external USB flash disk? other? nothing? – Damiano Verzulli Jun 6 '15 at 12:46
  • @HBruijn : I doubt /var/log/vsftpd.log exists, as we're on an OpenWRT box and logging, here, is handled differently ( wiki.openwrt.org/doc/howto/log.essentials) with respect to common GNU/Linux systems – Damiano Verzulli Jun 6 '15 at 12:49
  • @DamianoVerzulli: appears to be explcitely configured with xferlog_enable=YES & xferlog_file=/var/log/vsftpd.log ... – HBruijn Jun 6 '15 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.