美文网首页
搭建ftp服务器---vsftpd

搭建ftp服务器---vsftpd

作者: 农民工__乔Young | 来源:发表于2017-12-12 15:10 被阅读0次

下载并安装vsftpd

sudo apt-get install vsftpd

1、创建文件夹ftp,并修改权限

2、新增用户,并设置密码

useradd -d /ftp  -s /bin/bash userName
passwd userName

3、更改/etc/vsftpd.conf

在该文件最后,添加
userlist_deny=no
userlist_enable=yes
userlist_file=/etc/allowed_users
seccomp_sandbox=no

注:=两边不能有空格

4、新建/etc/allowed_users

在文件中添加新增用户的userName

5、开启ftp

sudo service vsftpd restart

相关文章

网友评论

      本文标题:搭建ftp服务器---vsftpd

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