Showing posts with label FTP. Show all posts
Showing posts with label FTP. Show all posts

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. 

Monday, 20 February 2012

FTP ( VSFTPD ) Server Installation on Linux

Vsftpd ( Very Secure FTP Daemon ) is an FTP server for Unix like Operating systems.

Install Vsftpd

                  [root@sysadmin sysadmin]#  yum   install   vsftpd  ftp

     Now restart the service

                  [root@sysadmin sysadmin]#  /etc/init.d/vsftpd  restart

     Check vsftpd process status

                  [root@sysadmin sysadmin]#  ps  -ef  |  grep   vsftpd


                  root     24457     1  0 22:07 ?        00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
                  root     24779 21553  0 23:00 pts/0    00:00:00 grep vsftpd

     Check ftp server port status

                 [root@sysadmin ~]#  netstat   -nat  |   grep  21

                 tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      

    Set the vsftpd service to start on boot


                [root@sysadmin ~]#  chkconfig  vsftpd  on