zoukankan      html  css  js  c++  java
  • vsftpd配置

    yum -y install vsftpd
    useradd upload -s /sbin/nologin
    passwd upload
    
    mkdir /data/upload
    chown -R upolad:upload /data/upload
    
    vim /etc/passwd
    upolad:upload:500:500::/home/upload:/usr/sbin/nologin
    ->
    upolad:upload:500:500::/data/upload:/usr/sbin/nologin
    
    # /etc/vsftpd/user_list
    upload
    
    # /etc/vsftpd/chroot_list
    upload
    
    # /etc/vsftpd/vsftpd.conf
    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    local_umask=022
    anon_upload_enable=NO
    anon_mkdir_write_enable=NO
    dirmessage_enable=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    xferlog_file=/var/log/xferlog
    xferlog_std_format=YES
    
    #chroot_local_user=YES
    chroot_list_enable=YES
    chroot_list_file=/etc/vsftpd/chroot_list
    
    userlist_enable=YES
    userlist_deny=NO
    userlist_file=/etc/vsftpd/user_list
    
    ls_recurse_enable=NO
    
    listen=YES
    listen_port=60000
    listen_ipv6=NO
    pasv_enable=YES
    
    use_localtime=YES
    pam_service_name=vsftpd
    userlist_enable=YES
    tcp_wrappers=YES
    
    connect_timeout=60
    accept_timeout=60
    data_connection_timeout=300
    idle_session_timeout=300
    
    /etc/init.d/vsftpd start && chkconfig vsftpd on
    
  • 相关阅读:
    页面优化
    php安全开发(1)文件包含漏洞
    换工作之后需要兼容ie8的我
    vue
    最近在写h5的页面,发现有一款框架还不错给大家推荐一下
    一个控制器两个轮播
    箭头的制作
    layui
    h5视频播放
    两侧跟随广告
  • 原文地址:https://www.cnblogs.com/liujitao79/p/4516844.html
Copyright © 2011-2022 走看看