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
In MySQL, you can specify multiple indexes for a ...
Table of contents Technology Stack Backend build ...
introduction Let's start with our content. I ...
1. Scenario display The tomcat log occasionally r...
yum install vsftpd [root@localhost etc]# yum -y i...
Nginx uses a fixed number of multi-process models...
VMware Workstation is a powerful desktop virtual ...
1. Download from the official website and unzip h...
1. Download Go to the Apache official website htt...
Three ways to set borders in HTML border-width: 1...
Sometimes local development requires debugging of...
In a table, you can define the color of the lower...
Recently, there has been a growing demand for imp...
Table of contents How to display SQL log? ? Descr...
In the database, both UNION and UNION ALL keyword...