centos7 proftp

1.安装epel源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
2.安装proftpd
yum install -y proftpd openssl proftpd-utils
3.启动proftpd
systemctl start proftpd.service
systemctl enable proftpd.service
4.创建ftp登录用户
a.创建ftp组:groupadd ftpgroup(查看本机是否已经有ftp组)
b.创建ftp用户,并关联ftp目录:useradd -G ftpgroup ftptest -s /sbin/nologin -d /home/ftptest/
c.设置ftptest用户密码:passwd ftptest
5.给目录设置权限,
chmod -R 777 /home/ftptest/
6.完毕,使用ftp客户端测试proftpd是否正常上传下载文件。

vim /etc/shells,添加:/sbin/nologin

posted @ 2021-12-15 18:53  angelfzt  阅读(85)  评论(0编辑  收藏  举报