美文网首页
centos7 搭建ftp服务

centos7 搭建ftp服务

作者: 夜空最亮的9星 | 来源:发表于2023-09-25 09:43 被阅读0次
    yum install -y ftp vsftpd
    systemctl start vsftpd
    systemctl status vsftpd
    systemctl enable vsftpd.service
    

    添加uftp用户:

    
    useradd -m uftp
    
    

    设置uftp用户登录密码

    passwd uftp
    
    

    编辑配置文件:

    添加登录用户白名单:

     /etc/vsftpd/user_list
     uftp
    

    vim /etc/vsftpd/vsftpd.conf

    write_enable=YES
    chroot_local_user=YES
    allow_writeable_chroot=YES
    chroot_local_user=YES
    pam_service_name=vsftpd
    userlist_enable=YES
    local_root=/datum/uftp
    userlist_deny=no
    userlist_file=/etc/vsftpd/user_list
    local_umask=022
    

    相关文章

      网友评论

          本文标题:centos7 搭建ftp服务

          本文链接:https://www.haomeiwen.com/subject/ufnqbdtx.html