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
Recently, I found a fun hover animation from the ...
500 (Internal Server Error) The server encountere...
Import: Due to project requirements, we will enca...
I won't say much nonsense, let's just loo...
This article shares the specific code for impleme...
This article example shares the specific code of ...
Table of contents 1. Introduction 2. The first me...
background This article mainly tests whether the ...
1. The difference between the command > and &g...
Before the release of Microsoft IE 5.0, the bigges...
In Vue, we generally have front-end and back-end ...
Achieve results Implementation Code html <div ...
Table of contents environment Virtual Machine Ver...
We deal with Linux servers every day, especially ...
1. Concept They are all attributes of Element, in...