FTP SERVER CONFIGURATION (Batch-20.02.36)
Any Linux system can operate as an FTP server. It has to run only the server software—an FTP daemon with the appropriate configuration. Transfers are made between user accounts on client and server systems. A user on the remote system has to log in to an account on a server and can then transfer files to and from that account’s directories only.
A special kind of user account, named ftp, allows any user to log in to it with the username “anonymous.” This account has its own set of directories and files that are considered public, available to anyone on the network who wants to download them.
The numerous FTP sites on the Internet are FTP servers supporting FTP user accounts with anonymous login. Any Linux system can be configured to support anonymous FTP access, turning them into network FTP sites. Such sites can work on an intranet or on the Internet.
1.Configuring the ftp Server
The vsftpd RPM package is required to configure a Red Hat Enterprise Linux system as an ftp server. If it is not already installed, install it with rpm commands as described in our pervious article. After it is installed, start the service as root with the command service vsftpd start . The system is now an ftp server and can accept connections. To configure the server to automatically start the service at boot time, execute the command chkconfig vsftpd on as root. To stop the server, execute the command service vsftpd stop. To verify that the server is running, use the command service vsftpd status.
2.Configure vsftpd server
In this example we will configure a vsftpd server and will transfer files from client side.
For this example we are using three systems one linux server one linux clients and one windows xp clients.
- A linux server with ip address 192.168.0.254 and hostname Server
- A linux client with ip address 192.168.0.1 and hostname Client1
- A window client with ip address 192.168.0.2 and hostname Client2
- Updated /etc/hosts file on both linux system
- Running portmap and xinetd services
- Firewall should be off on server
4.Check LAN card driver is installed or not.
LAN driver is the top most part for network. To check it run setup command
Select network configuration from list.
5.Check firewall status
Firewall is the necessary security part of Linux system which is connected to Internet. But in exam we are not going to use Internet so it’s good practice to disable it.
6.To disable firewall run setup commands.
- Now select firewall configuration from list and click on run tool.
- Select disable and click on ok and quit to return on command prompt.
- System reboot require to take effect so reboot system with reboot -f commands.
7.Check portmap and xinetd package status
Almost every Linux server needs these two rpm to function properly. First check that these rpm are install or not. If no rpm is install then install them via rpm commands.
- If you have rpm then check there status via setup commands.
- Now select system service from menu.
- put a star in front the portmap service.
- Now put star in front the xinetd service.
- Click on ok and select quit to come back on command prompt.
8.Now restart these two service.
- To keep on these services after reboot on then via chkconfig command.
- After reboot verify their status. It must be in running condition.
- Once you have successfully completed these steps you are ready to configure the Linux server .