1823415 Members
2644 Online
109655 Solutions
New Discussion юеВ

Linux RedHat9 ftp

 
Ragni Singh
Super Advisor

Linux RedHat9 ftp

HI all, I am running redhat 9 and have just set up anonymous ftp. The issue I'm hang is I am unable to overwrite a file via ftp. If there is a file that exists, my ftp is not able to overlay it but comes back and tells me

200 Switching to Binary mode.
put siac_div siac_div.file
200 PORT command successful. Consider using PASV.
553 Could not create file.
put nasd_div nasd_div.file
200 PORT command successful. Consider using PASV.
553 Could not create file.

Any help here is greatly appreciated and points will definetely be assigned.

5 REPLIES 5
Jerome Henry
Honored Contributor

Re: Linux RedHat9 ftp

Do you have w rights on this file, and x rights on the folder ?

What ftp server do you use ?

J
You can lean only on what resists you...
Alexander Chuzhoy
Honored Contributor

Re: Linux RedHat9 ftp

The reason is that you have to give apropriate permissions for uploading.
In case you installed vsftpd -you should edit
/etc/vsftpd/vsftpd.conf
if it's wu-ftpd
/etc/ftpaccess
anyway see man for you ftp daemon
Ragni Singh
Super Advisor

Re: Linux RedHat9 ftp

Hey all, here it goes. I am running redhat9 which comes with vsftpd. I have looked at the /etc/vsftpd/vsftpd.conf file and I have enabled anon_upload=YES. MY /pub dir on LInux is wide open with 777 permission. The file that I ftp puts it in /pub as 700. I modify the persmission to 777 and when I try ftp'ing again, it complains about not being able to create file again. I am totally confused. Any help is greatly appreciated.
Jerome Henry
Honored Contributor

Re: Linux RedHat9 ftp

Hi back,

Did you allow anon upload ? In conf file :
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES

As for your rights, 777 is cool. But 730 should be enough. Often, we creat an upload directory, kind of /var/ftp/pub/upload.

A long format listing of the directory should look like this:

drwx-wx--- 2 root ftp 4096 aug 26 19:05 upload.

Tell us what it gives !

J
You can lean only on what resists you...
Ragni Singh
Super Advisor

Re: Linux RedHat9 ftp

Thanks, but I;m gettign the same response. Can't create file.