LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to connect to Server machine from a client machine using ftp service (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-connect-to-server-machine-from-a-client-machine-using-ftp-service-4175455640/)

raosr020 03-26-2013 06:20 AM

Unable to connect to Server machine from a client machine using ftp service
 
Hi,

Could you please help me with the below issue..

I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1).

I'm trying to connect to server from the client machine using ftp service.

I have installed vsftpd daemon on both the machines.

I'm getting the below error. Please help me with the below issues.

500 OOPS: cannot change directory:/home/server
Login failed.
ftp> ls
421 Service not available, remote server has closed connection
Passive mode refused.


[root@Client ~]# ftp 192.168.0.10
Connected to 192.168.0.10 (192.168.0.10).
220 (vsFTPd 2.2.2)
Name (192.168.0.10:root): server
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/server
Login failed.
ftp> ls
421 Service not available, remote server has closed connection
Passive mode refused.
ftp>

pan64 03-26-2013 06:58 AM

not enough to install vsftpd, you also need to configure it. What have you made? Do you have firewall?

eklavya 03-26-2013 10:26 AM

The error
Code:

500 OOPS: cannot change directory:/home/server
Login failed.

is appeared when SELinux is enabled. Disable SElinux first using
Code:

$ setenforce 0
Restart vsftpd and try to connect again.

Madhu Desai 03-26-2013 11:14 AM

Quote:

Originally Posted by raosr020 (Post 4919101)
500 OOPS: cannot change directory:/home/server
Login failed.

# system-config-firewall
and check "FTP" service

# setsebool -P ftp_home_dir on

you are done.


All times are GMT -5. The time now is 06:49 AM.