Top 10 advanced ftp interview questions
Q:1 Which Users tare not allowed to login via ftp ?
Ans: Users mentioned in the file ‘/etc/vsftpd/ftpusers’ are not allowed to login via ftp.
Q:2 How to disable standard ftpd xferlog log format and enable default vsftpd log ?
Ans : 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
Q:3 How do we integrate with LDAP users and login?
A) Use vsftpd’s( Very Secure FTPD) PAM(Pluggable Authentication Modules) integration to do this, and have PAM authenticate against an LDAP repository.
Q:4 How to restrict different users with different permissions in vsftpd
A) By setting up “user_config_dir” entry in “vsftpd.conf”.
Q:5 How to change vsftpd default port?
A) By setting “listen_port” directive in “vsftpd.conf”
Q:6 How to disable certain FTP commands?
A) There are some individual settings (e.g. dirlist_enable) or you can specify a complete set of allowed commands with “cmds_allowed”.
Q:7 What is default directory for ftp (OR) Anonymous user ?
Ans : /var/ftp is the default directory for ftp or Anonymous user
Q:8 How to change the default directory for ftp (OR) Anonymous user ?
Ans: Edit the file ‘/etc/vsftpd/vsftpd.conf’ and change the below directive :
anon_root=/
Restart the service
service vsftpd restart
Q:9 How to disable Anonymous user in vsftpd ?
Ans: Edit the conf file ‘/etc/vsftpd/vsftpd.conf’ and change below directive and restart the ftp service.
anonymous_enable=NO
Q:10 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.
Q:1 Which Users tare not allowed to login via ftp ?
Ans: Users mentioned in the file ‘/etc/vsftpd/ftpusers’ are not allowed to login via ftp.
Q:2 How to disable standard ftpd xferlog log format and enable default vsftpd log ?
Ans : 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
Q:3 How do we integrate with LDAP users and login?
A) Use vsftpd’s( Very Secure FTPD) PAM(Pluggable Authentication Modules) integration to do this, and have PAM authenticate against an LDAP repository.
Q:4 How to restrict different users with different permissions in vsftpd
A) By setting up “user_config_dir” entry in “vsftpd.conf”.
Q:5 How to change vsftpd default port?
A) By setting “listen_port” directive in “vsftpd.conf”
Q:6 How to disable certain FTP commands?
A) There are some individual settings (e.g. dirlist_enable) or you can specify a complete set of allowed commands with “cmds_allowed”.
Q:7 What is default directory for ftp (OR) Anonymous user ?
Ans : /var/ftp is the default directory for ftp or Anonymous user
Q:8 How to change the default directory for ftp (OR) Anonymous user ?
Ans: Edit the file ‘/etc/vsftpd/vsftpd.conf’ and change the below directive :
anon_root=/
Restart the service
service vsftpd restart
Q:9 How to disable Anonymous user in vsftpd ?
Ans: Edit the conf file ‘/etc/vsftpd/vsftpd.conf’ and change below directive and restart the ftp service.
anonymous_enable=NO
Q:10 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.
No comments:
Write commentsThank you for your feedback