LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   vsftpd anonymous uploads (https://www.linuxquestions.org/questions/linux-networking-3/vsftpd-anonymous-uploads-48687/)

BigP 03-07-2003 05:26 AM

vsftpd anonymous uploads
 
Hi.

Recently installed RH 8.0 to run an FTP Data Repository on my local network.

I chose the server install, set the firewall to high, and installed the rpm's for anonftp and vsftpd.

I have a problem uploading files using the anonymous account.

Here is my vsftpd.conf

anonymous_enable=YES
local_enable=NO
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=NO
dirmessage_enable=NO
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ftpd_banner=Welcome.
pam_service_name=vsftpd

I have created a directory in /var/ftp/pub called upload and ran the command "chmod 755 /var/ftp/pub/upload"

When I try to upload to the directory pub or upload I get a 553 Could not create file error.

I am guessing I havent set the access controls right or the .conf is wrong in some way.

All help appreciated !

loke137 03-07-2003 08:08 AM

I have just tested, chmod 755 <dir> does not give users the permission to write to that directory!! I think you should do chmod 777 <dir> to do that :)

BigP 03-07-2003 10:37 AM

loke137...thanks very much.

That was the problem. I was using 744 as recommended by RedHat themselves not 755, but you have id'd the problem.

Check this out... http://www.redhat.com/docs/manuals/l...erver-ftp.html

Thanks again :D

Crashed_Again 03-07-2003 11:03 AM

Theres no need to give anonymous users executable rights to the files on your ftp server. Would you want them to be able to execute programs on your server? I would go with:

chmod 666


All times are GMT -5. The time now is 02:12 AM.