linux中pure-ftpd简单添加用户方法

使用pure-ftpd搭建ftp服务,参考链接:
https://blog.csdn.net/weixin_36171533/article/details/84974478
https://blog.csdn.net/renfeigui0/article/details/100163336

cd /usr/local/pureftpd/etc/
vi pureftpd.passwd

直接复制一行现成用户,保存
2.切换到/usr/local/pureftpd/bin运行
./pure-pw mkdb

提交数据库
3.编辑密码
./pure-pw passwd user

输入两次新密码

4.再次提交数据库
./pure-pw mkdb

提交数据库 搞定。

问题一:
lftp提示Fatal Error: Certificate Verification: Not Trusted错误的解决方法-linux
编辑/etc/lftp.conf,加入下面内容:
set ssl:verify-certificate no
或直接在lftp命令提示符下输入:set ssl:verify-certificate no 回车。

问题二:
FTP 553 Can’t open that file: Permission denied 错误解决方法
可以用$ll查看文件夹所有者
然后在执行权限命令
for user:
chown -fR <new_username> /home/abc

For grp:
chgrp -fR <new_grp> /home/abc

列如
chown -R www.www /data/wwwroot/www.landui.com/
find /data/wwwroot/www.landui.com -type d -exec chmod 755 {} ;
find /data/wwwroot/www.landui.com -type f -exec chmod 644 {} ;

扫描二维码关注公众号,回复: 11571703 查看本文章

猜你喜欢

转载自blog.csdn.net/qq_24058965/article/details/100658787