In Linux operating system vsftpd Very Secure FTP Daemon) is used for downloading and uploading files to the ftp space.
See also:
Linux Operating System Job Interview Questions Part 3
Linux Operating System Job Interview Questions Part 2
Linux Operating System Job Interview Questions Part 1
1) What does VSFTPD Stands for ?
VSFTPD stands for Very Secure FTP Daemon.
See also:
Linux Operating System Job Interview Questions Part 3
Linux Operating System Job Interview Questions Part 2
Linux Operating System Job Interview Questions Part 1
1) What does VSFTPD Stands for ?
VSFTPD stands for Very Secure FTP Daemon.
2) 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.
Port 20 – This is the data transfer port. All the all subsequent data transfers between the client and server are done using this port.
Port 21 – On this port control connection is 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 data connection.
3) What are most common features of vsftpd ?
Some of the Common Features are listed below :
Some of the Common Features are listed below :
1.
Virtual IP configurations
2. Virtual users
3. Standalone or inetd operation
4. Powerful per-user configurability
5. Bandwidth throttling
6. Per-source-IP configurability
7. Per-source-IP limits
8. IPv6
9. Encryption support through SSL integration
4) What is the configuration file of vsftpd ?
‘/etc/vsftp/vsftpd.conf’
‘/etc/vsftp/vsftpd.conf’
5) How to restart the service of ftp server in linux ?
Service vsftpd restart or /etc/init.d/vsftpd restart
Service vsftpd restart or /etc/init.d/vsftpd restart
6) Which Users tare not allowed to login via ftp ?
Users mentioned in the file ‘/etc/vsftpd/ftpusers’ are not allowed to login via ftp.
Users mentioned in the file ‘/etc/vsftpd/ftpusers’ are not allowed to login via ftp.
7) How to disable standard ftpd xferlog log format and enable
default vsftpd log ?
Edit the file ‘ /etc/vsftpd/vsftpd.conf’ & make the
below changes:
§
xferlog_std_format=NO
§
log_ftp_protocol=YES
The
default vsftpd log file is /var/log/vsftpd.log
8) What is default directory for ftp / Anonymous user ?
‘/var/ftp’ is the default directory for ftp or Anonymous user
‘/var/ftp’ is the default directory for ftp or Anonymous user
9) How to change the default directory for ftp / Anonymous user ?
Edit the file ‘/etc/vsftpd/vsftpd.conf’ and change the below directive :
Edit the file ‘/etc/vsftpd/vsftpd.conf’ and change the below directive :
§
anon_root=/<Path-of-New-Directory>
After
making above change either restart or reload vsftpd service.
10) How to disable Anonymous user in vsftpd ?
Edit the conf file ‘/etc/vsftpd/vsftpd.conf’ and change below directive and restart the ftp service.
Edit the conf file ‘/etc/vsftpd/vsftpd.conf’ and change below directive and restart the ftp service.
§
anonymous_enable=NO
11) 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.
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.
12) How to enable chroot environment in vsftpd server ?
To enable chroot environment edit the file ‘/etc/vsftpd/vsftpd.conf’ and enable the below directives :
To enable chroot environment edit the file ‘/etc/vsftpd/vsftpd.conf’ and enable the below directives :
§
chroot_list_enable=YES
§
chroot_list_file=/etc/vsftpd.chroot_list
The
chroot_list_file variable specifies the file which contains users that are
chroot.
13) 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 :
This can be done by editing the file ‘/etc/vsftpd/vsftpd.conf’ and add the below directives :
userlist_enable=YES
1. userlist_file=/etc/vsftpd.user_list
2. userlist_deny=NO
The file specified by userlist_file will now contain users that
are able to login.
14) How to set ftp banner in linux ?
Open the file ‘/etc/vsftpd/vsftpd.conf’ and set the below directive :
Open the file ‘/etc/vsftpd/vsftpd.conf’ and set the below directive :
§
ftpd_banner= “Enter New Banner Here”
15) 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 directives :
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
No comments:
Post a Comment