Using NFS and samba you can share the files within same network but what if you would like to share files with somebody from outside the network. In this case FTP server/service is the most suitable option.
So let’s configure FTP server in quick way.
1. You need to install the vsftpd using yum server.(Please you need to configure the yum server to work this command.)
[root@kalwa1 ~]# yum -y install vsftpd Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package vsftpd.x86_64 0:2.2.2-6.el6_0.1 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: vsftpd x86_64 2.2.2-6.el6_0.1 rhel62 150 k Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 150 k Installed size: 331 k Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : vsftpd-2.2.2-6.el6_0.1.x86_64 1/1 Installed products updated. Installed: vsftpd.x86_64 0:2.2.2-6.el6_0.1 Complete!
2. Start the service using service command.
[root@kalwa1 ~]# service vsftpd start Starting vsftpd for vsftpd: [ OK ] [root@kalwa1 ~]#
3. To start the service after reboot fire chkconfig .
[root@kalwa1 ~]# chkconfig vsftpd on
4. To enable the access for the root user remove the root user entry in the below two files:
• /etc/vsftpd/ftpusers
• /etc/vsftpd/user_list
Because FTP access performs in opposite way the users mentioned in the above two files do not have FTP access!!!!
After this start using ftp services!!!! That’s it.