Ftp Client error in centos and where to change the umask for ftp users?
Well inorder to give read, write and execute permission to the ftp users who are hosting their websites with us where whould we change their permission?
We are using vsftpd for ftp and in that configuration file the umask is set to 022?is that where i should change to 012 so that they can upload it? Because when they tried uploading their website through ftp client it gave the following error: Code:
Transfer channel cannot be opened. Reason: A connection attempt failed because the connected party And we as the owner can upload the the files though so thought the issue was with the umask. And in our iptables both port 20 and 21 is open but wen i see the listening ports,port 20 is not there.. |
Hi,
Quote:
Anyway if you're sure that you want the execute rights on files transferred, you can let umask as is and add: Code:
file_open_mode=0755 Quote:
Quote:
|
Well can you please tell me what should i do and how to enable passive ftp in vsftpd and also in ftp client?
|
Hi,
Use the following in vsftpd.conf Code:
pasv_enable=YES Regarding clients, you should take a look at their configuration options. Some of them can fallback from active to passive. Regards |
well how do i add those range of ports in the firewall?
And by firewall do you mean iptables? Well i tried adding them in iptables but it wasn't added at the end,maybe the syntax was incorrect.. So can you please tell how should i go about it.. |
Hi,
iptables -I INPUT -p tcp --dport 21 -j ACCEPT This is will open port 21 for public else you have to take a look at your logs /var/log Thanks Puspharaj |
ya i know about that and it has been already added,..
I'm asking about the passive ports....how do i add that pasv_min_port and pasv-max_port which is actually a range in the firewall or the iptables? |
Quote:
|
You may find this informative for background understanding http://slacksite.com/other/ftp.html
|
Wow thank you two of you....i went through the link given and did as told and it worked now, i mean the client uploaded the web.
But he said now he is getting the same error in the database server... Now i don't have any clue as to what port is required for that.... Can anyone help me again? |
thank you all...it worked now..
|
All times are GMT -5. The time now is 09:08 PM. |