ftp server incoming directory

Wybo Dekker wybo at servalys.nl
Fri May 8 14:08:25 UTC 2009


I wrote:
> matteo filippetto wrote:
> 
>> Hi, you can set anonymous ftp upload to a specific directory with this lines
>>
>> anonymous_enable=YES
>> anon_root=/home/ftp/incoming/ (with mode 555 and owner ftp)
> 
> but then I could not write in the incoming directory.
> I made it so:
> 
> home>ls -ld ftp ftp/incoming
> dr-xr-xr-x 3 ftp nogroup 4096 2009-05-07 14:43 ftp
> drwxr-xr-x 2 ftp nogroup 4096 2009-05-07 14:43 ftp/incoming
> 
> and now it works.

...I thought, but after a reboot it didn't

Now changed as follows:

home>ls -ld /home/ftp /home/ftp/incoming
dr-xr-xr-x 3 root root 4096 2009-05-08 15:12 /home/ftp
drwxrwxrwx 2 root root 4096 2009-05-08 15:52 /home/ftp/incoming

home>grep -v ^# /etc/vsftpd.conf
listen=YES
anonymous_enable=YES
write_enable=YES
anon_upload_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=wybo
ftpd_banner=Welcome to Wybo Dekker's FTP service.
secure_chroot_dir=/var/run/vsftpd
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

now works after reboot, too

-- 
Wybo




More information about the ubuntu-users mailing list