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
This article records the installation and configu...
Docker Learning https://www.cnblogs.com/poloyy/p/...
This article shares the specific code of JavaScri...
Table of contents Process Communication Bidirecti...
I used Vue.js to make a nine-grid image display m...
Environmental Description: There is a running MyS...
This article shares a common example of viewing p...
Due to work requirements, I recently spent some t...
Table of contents 1minio is simple 2 Docker build...
Definition and Usage The display property specifi...
(I) Installation of mysql5.7: ❀ Details: The inst...
1. Nested routing is also called sub-routing. In ...
A word in advance: Suddenly I received a task to ...
Understanding of polling In fact, the focus of po...
<br />Green is between yellow and blue (cold...