Saturday 10 March 2012

500 OOPS: cannot change directory:/home/user, Login failed on Vsftpd

You want to login ftp server using system user(local or remote) and want to get into home directory of that user.You are trying to connect ftp server but getting below error



Above error occurs when SELinux is Enforcing mode.First you need to check SELinux status using below command.

[root@localhost ~]# getenforce
Enforcing

You need to change SELinux mode Enforcing to Permissive mode

 [root@localhost ~]# setenforce  0

Now check again SELinux status

  [root@localhost ~]# getenforce 
  Permissive

Now you can able to login ftp server using user (ftp-user) and check user home directory using "pwd" command


If you want to access remote machine via ftp then Disable Firewall and SELinux. 

No comments:

Post a Comment