LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP issue from one server to anothe server (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-issue-from-one-server-to-anothe-server-4175539778/)

callis07 04-15-2015 07:18 AM

FTP issue from one server to anothe server
 
when i try to ftp from server to another server I am getting error below

bash-3.2$ ftp 172.25.27.120
Connected to 172.25.27.120.
220 Service ready for new user.
Name (172.25.27.120:ccnusr): crsftp
331 User name okay, need password for crsftp.
Password:
230 User logged in, proceed.
Remote system type is UNIX.
ftp> cd /tmp
250 Directory changed to /tmp
ftp>
ftp> mput /tmp/tst.air
mput /tmp/tst.air? y
200 Command PORT okay.
550 /tmp/tst.air: Permission denied.
ftp>
ftp>

Please let me know if anyone has faced the simialar issue.

I have checked the vsftpd.conf file and seems everything is fine

anonymous_enable=YES
local_enable=YES
write_enable=YES
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
# The name of log file when xferlog_enable=YES and xferlog_std_format=YES
# NO writes to vsftpd_log_file, YES to xferlog_file
xferlog_std_format=YES
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#deny_email_enable=YES
# directory. If chroot_local_user is YES, then this list becomes a list of
#chroot_local_user=YES
#chroot_list_enable=YES
#ls_recurse_enable=YES
listen=YES
#listen_ipv6=YES
userlist_enable=YES
tcp_wrappers=YES

T3RM1NVT0R 04-15-2015 07:50 AM

Appears to be permission issue. Did you check the permission on the destination where you are trying to do mput. Was it working before or this is a new setup.

You used the command: cd /tmp which will change your FTP directory not your local directory. So if you are trying to do mput from local directory you should use: lcd /tmp instead.

Quite possible that user account is not allowed to write to /tmp (since you have changed it to /tmp using cd /tmp) via FTP.

You did not mention which flavour of Linux you are using?

callis07 04-16-2015 07:05 AM

OS version : Red Hat Linux 6.4

My doubt is will there be any firewall between two nodes. since to able to send files to the required directories from other Solaris machine I am working.

T3RM1NVT0R 04-16-2015 07:18 AM

Firewall can be there but it will not just affect the write permission. You won't be able to access the service at all if firewall is blocking a particular port.

Are you trying to say you are not able to enter the passive mode? Did you check if port 20 is open for FTP passive connection?


All times are GMT -5. The time now is 10:15 AM.