make vsftp more usable

Harry Putnam reader at newsguy.com
Thu May 13 03:21:32 UTC 2004


I don't understand what needs to happen to make vsftp usefull for my
purpose.  That is, on a trusted home lan where the only person
logging in is me.

I've set every permissive variable I could find as permissive as
possible.  But still on an anonymous login I can't upload anything
and I cannot make directories.  In other words its really useless.

My config:
[as root]:
# egrep '^ *[^#]' /etc/vsftpd/vsftpd.conf
  anonymous_enable=YES
  local_enable=YES
  write_enable=YES
  local_umask=022
  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
  log_ftp_protocol=YES
  idle_session_timeout=300
  ascii_upload_enable=YES
  ascii_download_enable=YES
  ftpd_banner="Welcome to my ignorant FTP service"
  ls_recurse_enable=YES
  pam_service_name=vsftpd
  listen=YES
  tcp_wrappers=YES

And I've set very permissive permissions on /var/ftp/pub
(This was set temporarily trying to get something to work)
ls -l /var/ftp

total 4
drwxrwxrwx  2 ftp ftp 4096 Feb 17 12:27 pub

I'm thinking with `chown_username=ftp' enabled any upload should end
up with chown ftp:ftp and therefore be allowed.  Ditto with the mkdir

So whats wrong here?  This log output is from one short connection
where I tried to upload a file named `something' on connect, then tried
to `mkdir new'

My log messages, although plentiful, are singularly non-usefull:
  (wrapped for mail)

Wed May 12 22:12:02 2004 [pid 12255] [ftp] FTP command: Client
"192.168.0.19", "TYPE I"
Wed May 12 22:12:02 2004 [pid 12255] [ftp] FTP response: Client
"192.168.0.19", "200 Switching to Binary mode."
Wed May 12 22:12:02 2004 [pid 12255] [ftp] FTP command: Client
"192.168.0.19", "EPSV"
Wed May 12 22:12:02 2004 [pid 12255] [ftp] FTP response: Client
"192.168.0.19", "229 Entering Extended Passive Mode (|||36661|)"
Wed May 12 22:12:02 2004 [pid 12255] [ftp] FTP command: Client
"192.168.0.19", "STOR something"
Wed May 12 22:12:02 2004 [pid 12255] [ftp] FTP response: Client
"192.168.0.19", "553 Could not create file."
Wed May 12 22:12:04 2004 [pid 12255] [ftp] FTP command: Client
"192.168.0.19", "MKD new"
Wed May 12 22:12:04 2004 [pid 12255] [ftp] FAIL MKDIR: Client
"192.168.0.19", "/new"
Wed May 12 22:12:04 2004 [pid 12255] [ftp] FTP response: Client
"192.168.0.19", "550 Create directory operation failed."
Wed May 12 22:12:10 2004 [pid 12255] [ftp] FTP command: Client
"192.168.0.19", "QUIT"
Wed May 12 22:12:10 2004 [pid 12255] [ftp] FTP response: Client
"192.168.0.19", "221 Goodbye."










More information about the fedora-test-list mailing list