Vulnerability Details VSFTP is a set of FTP server software used on Unix-like systems released based on GPL. The software supports virtual users, two authentication methods (PAP or xinetd/tcp_wrappers), bandwidth limitation, etc. A security vulnerability exists in VSFTP because the program does not properly handle the 'deny_file' option. A remote attacker could exploit this vulnerability to bypass access restrictions. The following products and versions are affected: VSFTP 3.0.2 and earlier versions, OpenSUSE 13.1 and 13.2 versions. Affected Products Vsftpd Vsftpd 3.0.2
Create users and shared directories and directory permissions
zhangsan #Username
auth required /lib64/security/pam_userdb.so db=/etc/vsftpd/access
anonymous_enable=NO local_enable=YES write_enable=YES #Do not start the lock user list. All users will be locked and not allowed to access the parent directory. They are only allowed to access their home directory. chroot_local_user=YES chroot_list_enable=NO #Start log xferlog_enable=YES xferlog_std_format=YES xferlog_file=/etc/vsftpd/vsftpd.log # Enable virtual user guest_enable=YES #FTP virtual user corresponding to the system user guest_username = vsftpd #PAM authentication file /etc/pam.d/vsftpd pam_service_name=vsftpd virtual_use_local_privs=YES Write the vsftpd startup script: /etc/init.d/vsftpd #!/bin/bash # # vsftpd This shell script takes care of starting and stopping # standalone vsftpd. # # chkconfig: -60 50 # description: Vsftpd is a ftp daemon, which is the program # that answers incoming ftp service requests. # processname: vsftpd # config: /etc/vsftpd/vsftpd.conf # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 [ -x /usr/local/sbin/vsftpd ] || exit 0 RETVAL=0 prog="vsftpd" start() { # Start daemons. if [ -d /etc/vsftpd ] ; then for i in `ls /etc/vsftpd/*.conf`; do site=`basename $i .conf` echo -n $"Starting $prog for $site: " /usr/local/sbin/vsftpd $i & RETVAL=$? [ $RETVAL -eq 0 ] && { touch /var/lock/subsys/$prog success $"$prog $site" } echo done else RETVAL=1 fi return $RETVAL } stop() { # Stop daemons. echo -n $"Shutting down $prog: " killproc $prog RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog return $RETVAL } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) stop start RETVAL=$? ;; condrestart) if [ -f /var/lock/subsys/$prog ]; then stop start RETVAL=$? fi ;; status) status $prog RETVAL=$? ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac exit $RETVAL Add execution permissions
Login test
The above is the detailed content of compiling and installing vsFTP 3.0.3. For more information about compiling and installing vsFTP 3.0.3, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: How to use react-color to implement the front-end color picker
>>: Detailed explanation of MySQL database tens of millions of data query and storage
Table of contents 1. Number in JavaScript 2. Math...
Table of contents Overview Front-end knowledge sy...
Share the cool front-end page random QR code veri...
This article shares with you two methods of setti...
Virtualization 1. Environment Centos7.3 Disable s...
"Grand" are probably the two words that ...
The first and most important step is how to insta...
1. mpstat command 1.1 Command Format mpstat [ -A ...
1. Apache static resource cross-domain access Fin...
echarts component official website address: https...
Table of contents one. environment two. Precautio...
Table of contents 1. Scopes are expressed in diff...
Table of contents design Component Communication ...
Docker Learning https://www.cnblogs.com/poloyy/p/...
I want to use the marquee tag to set the font scro...