LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   could not upload ftp files (https://www.linuxquestions.org/questions/linux-newbie-8/could-not-upload-ftp-files-746342/)

ah_gal06 08-10-2009 12:22 AM

could not upload ftp files
 
hi! i manage to download files from the ftp server. but i can't upload my files to the ftp server. why is this happening?

i even chmod 777 to my ftp directory. this is my vsftpd.config file:

Quote:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=0777
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=whoever
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
#idle_session_timeout=600
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
ftpd_banner=Welcome to FTP service!
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd/banned_emails
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd/chroot_list
#ls_recurse_enable=YES
listen=YES
#listen_ipv6=YES

pam_service_name=vsftpd
userlist_enable=NO
tcp_wrappers=YES
file_open_mode=0777
this thing keep appearing in my client computer when i tried to upload file (using local user and anonymous):
Quote:

ftp> put greetings
local: greetings remote: greetings
227 Entering Passive Mode (10,0,0,1,98,182)
553 Could not create file.
what is happening? please help! by the way, i m using redhat linux. thanks.

ah_gal06 08-10-2009 03:33 AM

anyone pls help~~~ i will be grateful.

catkin 08-10-2009 03:45 AM

Grateful doesn't figure; helping someone else out does.

My guess (I don't know vsftpd) is that you don't have write permission on the ftp server when logged in as anonymous; you probably need to log in to the ftp server as a known user. anonymous does have read permission which is why you can get/download OK.

If you really want anonymous to have write permission then it may be configurable but it's wide-open security-wise; that may not matter in your particular situation.

ah_gal06 08-10-2009 04:39 AM

Quote:

Originally Posted by catkin (Post 3637464)
Grateful doesn't figure; helping someone else out does.

My guess (I don't know vsftpd) is that you don't have write permission on the ftp server when logged in as anonymous; you probably need to log in to the ftp server as a known user. anonymous does have read permission which is why you can get/download OK.

If you really want anonymous to have write permission then it may be configurable but it's wide-open security-wise; that may not matter in your particular situation.

the thing is normal users cannot upload as well. dunno why.. permission i set all to 777 already. seems so weird that it keep coming:
227 Entering Passive Mode (10,0,0,1,225,163)
553 Could not create file.

Wim Sturkenboom 08-10-2009 05:17 AM

Maybe the log files reveal something. Seem to remember that there is something like vsftp.log and maybe something like transfer.log, somewhere in /var.

No access to a server at this stage.

jeromeNP7 08-10-2009 06:07 AM

You wrote that you have set everything to 777. What directory locations have been made writeable exactly? For logged in users the home directories should be accessed, for anonymous users it's rather /var/ftp/pub/ or some similar location.

In your config file you have commented out chown_uploads and chown_username - I would run a test with these enabled. Not being able to upload even for logged users indicates that the ftp server somehow doesn't deal correctly with chown issues.

Linux

ah_gal06 08-17-2009 09:04 AM

thanks everyone! i haf solved my problem... looks like i did not configure the firewall correctly in the setup.. that results in my failure in putting greetings to the ftp directory. :) thank u for your solutions though!

catkin 08-17-2009 09:44 AM

Quote:

Originally Posted by ah_gal06 (Post 3646497)
thanks everyone! i haf solved my problem... looks like i did not configure the firewall correctly in the setup.. that results in my failure in putting greetings to the ftp directory. :) thank u for your solutions though!

Thank you for posting the solution; it may help somebody. Please mark the thread solved via Thread Tools.


All times are GMT -5. The time now is 09:53 PM.