FTP

FILE TRANSFER PROTOCOL

 

Configuration File:

               /etc/vsftpd/vsftpd.conf

 

Installation & Configuration:

               1. yum install vsftpd

              

               2. vim /etc/vsftpd/vfstpd.conf

                              a. anonymous_enable = no                                      (If keep it YES, then anyone can log in)

                              b. xferlog_file = /var/log/vsftpd.log                     (Optional – For upload/download logging)

                              c. idle_session__timeout = 1000                             (Optional – Sets time when an idle session timeout in seconds)

                              d. ftpd_banner = Set Display Message                  (Optional)

                              e. chroot_local_user = YES

                                   chroot_list_enable = YES

                              f. chroot_list_file = /etc/vsftpd/chroot_list

                              g. is_recurse_enable = YES

 

               ADD FOLLOWING LINE AT THE END

                             

                              h. use_localtime = YES

                              i. local_max_rate = 1000000                     (Optional)

                              j. max_clients = 5                                          (Optional)

                              k. listen_port = 200                                      (Optional)

              

               3. Some more Basic Configuration.

                             a. vim /etc/vsftpd/chroot_list

                                  (Add all users who all are having FTP access. Still, FTp commands won’t work. To make it work use fbelow command.)

              

                              b. setsebool -P ftp_home_dir on

                                   (The users mentioned in “/ec/vsftpd/chroot_list” are allowed to access FTp server from everyehere, but they can access only their profile)

Comments