FTP Server Interview Questions & Answers
In Linux Like operating system vsftpd(Very Secure FTP Daemon) is ftp server, which provides the features of downloading and uploading files to the ftp space. Now we will discuss most common Linux ftp server interview questions along with the Answers.
What does VSFTPD Stands for ?
VSFTPD stands for Very Secure FTP Daemon.
What are the defaults ports used in linux ftp server ?
Port 20 – This is the data transfer port. All the all subsequent data transfers
between the client and server are done using this port.
established. All commands we send and the ftp server’s responses to those
commands will go over the control connection, but any data sent back (such as
“ls” directory lists or actual file data in either direction) will go over the
What are most common features of vsftpd ?
of the Common Features are listed below :
Virtual IP configurations
Standalone or inetd operation
Powerful per-user configurability
Encryption support through SSL
What is the configuration file of vsftpd ?
How to restart the service of ftp server in linux ?
Service vsftpd restart or /etc/init.d/vsftpd restart
Q:6 What is Passive mode ?
requesting data from the server, the FTP client indicates it wants to access
the data in passive mode and the server provides the IP address and a random,
unprivileged port (greater than 1024) on the server. The client then connects
to that port on the server to download the requested information.
How to allow Anonymous FTP ?
FTP is enabled by default by setting the anonymous_enable directive in
/etc/vsftpd/vsftpd.conf to YES.
Which Users are not allowed to login via ftp ? or How to deny specific users
access to the FTP server?
Users mentioned in the file ‘/etc/vsftpd/ftpusers’ are not allowed to login via
I want to copy multiple files without prompting for any info, how can I do that
How to disable standard ftpd xferlog log format and enable default vsftpd log ?
Edit the file ‘ /etc/vsftpd/vsftpd.conf’ & make the below changes:
Local users cannot log in. How to resolve this issue?
“local_enable=YES” in your /etc/vsftpd/vsftpd.conf to allow local
users to log in.
What is default directory for ftp / Anonymous user ?
‘/var/ftp’ is the default directory for ftp or Anonymous user
How to change the default directory for ftp / Anonymous user ?
Edit the file ‘/etc/vsftpd/vsftpd.conf’ and change the below directive :
How to disable Anonymous user in vsftpd ?
Edit the conf file ‘/etc/vsftpd/vsftpd.conf’ and chnage below directive and
restart the ftp service.
How to enable Anonymous downloads, but disable permission to write?
In the above said scenario, we need to edit the parameter
‘anon_world_readable_only’. The parameter should be enabled and set to ‘YES’.
The default value is YES.
How to CHMOD all Anonymous uploads automatically. How would you do?
To chmod all anonymous uploads automatically, we need to edit the parameter
‘chmod_enable’ and set it to ‘YES’. Anonymous users never get to use SITE
CHMOD. The default value is YES.
The parameter ‘dirlist_enable’ comes to rescue at this point. The value of
‘dirlist_enable’ should be set to NO. The default value is YES.
How to maintain sessions for logins of VSFTP. How will you do?
The parameter ‘session_support’ needs to be modified. This parameter controls
and manages vsftp attempts to maintain session for logins. The default value is
How will you limit the maximum transfer rate from VSFTP server?
To limit the maximum transfer rate of VSFTP server we need the parameter
‘anon_max_rate’ in bytes per second, for anonymous client. The default value is
0 which means unlimited.
How will you timeout the idle session of VSFTP?
The parameter ‘idle_session_timeout’ needs to be modified here. The timeout in
second, which is the maximum time an anonymous user can spend in a session
between his client machine and VSFTP server. As soon as the the timeout
triggers, the client is logged out. The default time is 300.
Explain directive “session_support”?
enabled, vsftpd attempts to maintain login sessions for each user through
Pluggable Authentication Modules (PAM).
What is chroot environment in ftp server ?
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.
How to enable chroot environment in vsftpd server ?
To enable chroot environment edit the file ‘/etc/vsftpd/vsftpd.conf’ and enable
the below directives :
which contains users that are chroot.
How to enable only limited/allowed users are able to login via ftp ?
This can be done by editing the file ‘/etc/vsftpd/vsftpd.conf’ and add the
below directives :
users that are able to login.
How to set ftp banner in linux ?
Open the file ‘/etc/vsftpd/vsftpd.conf’ and set the below directive :
ftpd_banner= “Enter New Banner Here”
How To limit the data transfer rate, number of clients & connections per IP
for local users ?
Edit the ftp server’s config file(/etc/vsftpd/vsftpd.conf) and set the below
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
What is meaning of max_clients parameter ?
number of clients that can connect at one time. If set to 0, the number of
clients is unlimited.