1) Why we use FTP server?
Ans :- The File Transfer Protocol (FTP) is used to downloads and upload the files over a network.
2) On which port linux ftp server work?
Ans :- Port 20 – data transfers between the client and server are done using this port.
Port 21 – control connection is established on this port.
3) Which package we used to configure FTP server?
Ans : - vsftpd
4) What is the main configuration file for FTP server?
Ans : - /etc/vsftpd/vsftpd.conf
5) What does VSFTPD stands for?
Ans :- VSFTPD stands for Very Secure FTP Daemon.
6) How to restart the service of ftp server in Linux?
Ans :- Service vsftpd restart (in RHEL-6)
or
/etc/init.d/vsftpd restart (in RHEL-6)
systemctl restart vsftpd.service (in RHEL-7)
7) How to enable the service of ftp server in Linux?
Ans :- Service vsftpd enable (in RHEL-6)
or
/etc/init.d/vsftpd enable (in RHEL-6)
systemctl enable vsftpd.service (in RHEL-7)
8) Which Users are not allowed to login via ftp ?
Ans: Users mentioned in the file ‘/etc/vsftpd/ftpusers’ are not allowed to login via ftp.
9) How to change vsftpd defaults port?
Ans : - by using listen_port parameter in ‘vsftpd.conf’ file.
10) How can you restrict IP’s in FTP server?
Ans : - by using TCP_WRAPPERS.
11) Does vsftpd support IPv6?
Ans : - Yes.
12) In my FTP server local users are not login. How can i resolve this issue?
Ans : - check “local_enable=YES” in your /etc/vsftpd/vsftpd.conf to allow local users to login.
13) To display a welcome banner in FTP server what i do?
Ans : - edit the file “/etc/vsftpd/vsftp.conf” and set below parameter
ftpd_banner=“your banner ”
14) How to allow Anonymous Users in FTP server?
Ans : - the default setting for allowing anonymous users is yes.
i.e. anonymous_enable=YES.
15) How to restrict Anonymous Users in FTP server?
Ans : - set parameter anonymous_enable=NO.
16) Anonymous users want to upload files, how?
Ans : - comment out this to allow the anonymous FTP user to upload files.
# anon_upload_enable=YES
17) How to limit the data transfer rate, number of clients & connections per IP for local users?
Ans : - Edit the ftp server’s config file(/etc/vsftpd/vsftpd.conf) and set the below directives,
local_max_rate=1000000 # Maximum data transfer rate in bytes per second
max_clients=50 # Maximum number of clients that may be connected
max_per_ip=2 # Maximum connections per IP
18) What is chroot environment in ftp server?
Ans :- chroot environment prevents the user from leaving its home directory means jail like environment where users are limited to their home directory only. It is the addon security of ftp server.
19) How to restrict users to their home directories?
Ans :- By setting up “chroot_local_user=YES”.
19) Which command you used to check FTP server configuration file?
Ans :- vsfftpd
20) What is default log file for vsftpd?
Ans :- The default vsftpd log file is /var/log/vsftpd.log
21) What is default log file for FTP or Anonymous user?
Ans :- “/var/ftp” is the default directory for ftp or Anonymous user.
22) How to change the default directory for FTP or Anonymous user in vsftpd?
Ans :- Edit the configuration file “/etc/vsftpd/vsftpd.conf” file and change below
directive restart the ftp service.
anonymous_enable=NO
23) If you want to download a file from ftp server which command you used?
Ans :- get command to download single file and mget command to download single or multiple files.
24) If you want to upload a file over ftp server which command you used?
Ans :- put command to upload single file and mput command to upload single or multiple files.
25) What is the use of wget command?
Ans:- with the help of wget command we can download a file from link . We can download a multiple file with http and ftp protocol.
For example :-
To Download single file from Devine folder
# wget https://eassylinux.wixsite.com/root/technology.txt
To Download All files from Devine folder
# wget http://eassylinux.wixsite.com/root/*
Comments