首页 > 其他 > 详细

ftp 虚拟用户设置--bug-bgu-bug

时间:2015-04-18 21:46:43      阅读:257      评论:0      收藏:0      [点我收藏+]

[root@liweichen vsftpd]# vim vsftpd.conf
[root@liweichen vsftpd]# cp vsftpd.conf  ~/桌面
[root@liweichen vsftpd]# cdp vsftpd.conf  /home/lwc
bash: cdp: command not found
[root@liweichen vsftpd]# cp vsftpd.conf  /home/lwc
[root@liweichen vsftpd]# cd /home/lwc
[root@liweichen lwc]# ls
myexe  vsftpd.conf  公共的  模板  视频  图片  文档  下载  音乐  桌面
[root@liweichen lwc]# cd /etc/vsftpd
[root@liweichen vsftpd]# vim
[root@liweichen vsftpd]# vim vsftpd.conf
[root@liweichen vsftpd]# vim vuser_passwd.txt
[root@liweichen vsftpd]# db_load -T -t hash -f /etc/vsftpd/vuser_passwd.txt /etc/vsftpd/vuser_passwd.db
[root@liweichen vsftpd]# cd /etc/pam.d
[root@liweichen pam.d]# vim vsftpd
[root@liweichen pam.d]# cd ..
[root@liweichen etc]# cd vsftpd
[root@liweichen vsftpd]# mkdir vuser_conf
[root@liweichen vsftpd]# cd vuser_conf/
[root@liweichen vuser_conf]# vim test1
[root@liweichen vuser_conf]# vim test1
[root@liweichen vuser_conf]# setsebool allow_ftp_full_access=1
Could not change active booleans: Invalid boolean
[root@liweichen vuser_conf]# setsebool allow_ftpd_full_access=1

[root@liweichen tmp]# cd /etc/vsftpd/vuser_conf/
[root@liweichen vuser_conf]# ls
test1
[root@liweichen vuser_conf]# vim test1
[root@liweichen vuser_conf]# mkdir /ftp/www
mkdir: 无法创建目录"/ftp/www": 没有那个文件或目录
[root@liweichen vuser_conf]# cd tmp
bash: cd: tmp: 没有那个文件或目录
[root@liweichen vuser_conf]# ls
test1
[root@liweichen vuser_conf]# cd /tmp
[root@liweichen tmp]# vim /etc/vsftpd/vuser_
vuser_conf/       vuser_passwd.db   vuser_passwd.txt  
[root@liweichen tmp]# vim /etc/vsftpd/vuser_conf/test1
[root@liweichen tmp]# mkdir www
[root@liweichen tmp]# chmod -R 777 www
[root@liweichen tmp]# cd /etc
[root@liweichen etc]# cd /sysconfig
[root@liweichen etc]# cd sysconfig

    
[root@liweichen sysconfig]# vim iptables
[root@liweichen sysconfig]# sercive iptables restart
iptables:将链设置为政策 ACCEPT:filter                    [确定]
iptables:清除防火墙规则:                                 [确定]
iptables:正在卸载模块:                                   [确定]
iptables:应用防火墙规则:                                 [确定]
[root@liweichen sysconfig]# cd ..
[root@liweichen etc]# cd vsftpd
[root@liweichen vsftpd]# vim vsftpd.conf
[root@liweichen vsftpd]# cd ..
[root@liweichen etc]# cd sysconfig
[root@liweichen sysconfig]# vim iptables
[root@liweichen sysconfig]# service iptables restart
iptables:将链设置为政策 ACCEPT:filter                    [确定]
iptables:清除防火墙规则:                                 [确定]
iptables:正在卸载模块:                                   [确定]
iptables:应用防火墙规则:                                 [确定]
[root@liweichen sysconfig]# service vsftpd restart
关闭 vsftpd:                                                      [确定]
为 vsftpd 启动 vsftpd:                                    [确定]


出现错误:
[root@liweichen sysconfig]# ftp 192.168.1.117
Connected to 192.168.1.117 (192.168.1.117).
220 (vsFTPd 2.2.2)
Name (192.168.1.117:root): test1
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> exit
221 Goodbye.

ftp 虚拟用户设置--bug-bgu-bug

原文:http://www.cnblogs.com/-xingye/p/4438019.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!