下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、在未知某用户密码的情况下,通过建立虚拟用户到该用户,虚拟用户拥有该用户一样的权限。 建立过程: cd /etc mkdir vsftpd cd vsftpd/ vi login.txt #见附件,虚拟用户,奇数行为用户名,偶数行为密码 db_load -T -t hash -f login.txt /etc/vsftpd/vsftpd_login.db chmod 660 vsftpd_login.db cd /etc/pam.d vi vsftp.vu #见附件,指定认证数据库路径 cd . vi vsftpd.conf #见附件,主配置 touch vsftpd.user_list /et
2、c/init.d/vsftpd restart 相应的文件共3个: 1、login.txt 登陆账户,内容如下: admin 1qaz2wsx 2、vsftp.vu 库文件和db文件,有64位系统和32位系统的区别,本例为64位系统,32位系统去掉64字样即可,内容如下: auth required /lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login account required /lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login 3、vsftpd.conf 配置
3、文件,内容如下(#开头的行可删除): # Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is NOT
4、an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's # capabilities. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out. anonymous_enable=NO # # Uncomment this to allow local users to log in. local_enable=YES
5、# # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's local_umask=022 # # Uncomment this to allow the anonymous FTP user to upload fi
6、les. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable
7、=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # Activate logging of uploads/downloads. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data. connect_from_port_20=YES # # If
8、 you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # You may override where the log file goes if you like. The default is shown # below. xferlog_
9、file=/var/log/vsftpd.log # # If you want, you can have your log file in standard ftpd xferlog format xferlog_std_format=YES # # You may change the default value for timing out an idle session. #idle_session_timeout=600 # # You may change the default value for timing out a data connection. #data_conn
10、ection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code
11、is non-trivial. Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Bewa
12、re that turning on ascii_download_enable enables malicious remote parties # to consume your I/O resources, by issuing the command "SIZE /big/file" in # ASCII mode. # These ASCII options are split into upload and download because you may wish # to enable ASCII uploads (to prevent uploaded s
13、cripts etc. from breaking, # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be # on the client anyway. #ascii_upload_enable=YES #ascii_download_enable=YES # # You may fully customise the login banner string: #ftpd_banner=Welcome to blah FTP service. # # You may specify a fil
14、e of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows #banned_email_file=/etc/vsftpd.banned_emails # # You may specify an explicit list of local users to chroot( to their home # directory. If chroot_local_user is
15、 YES, then this list becomes a list of # users to NOT chroot(. #chroot_list_enable=YES #chroot_local_user=YES # (default follows #chroot_list_file=/etc/vsftpd.chroot_list # # You may activate the "-R" option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume # the presence of the "-R" option, so there is a strong case for enabling it. #ls_recurse_enable=YES
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 九年级下册英语月考考试卷带答案解析
- 临夏回族自治州2024年甘肃省临夏州引进急需紧缺人才376人(第二批)笔试历年参考题库典型考点附带答案详解(3卷合一)
- 《GBT 34835-2017 电气安全 与信息技术和通信技术网络连接设备的接口分类》专题研究报告
- 医院行政部门岗位的考核重点解析
- 应急心理疏导员面试题集
- 面试题库诚通控股投资发展部经理岗位
- 中国移动通信技术专员面试题目全解
- 零售连锁企业市场拓展经理的招聘考试题目及答案参考
- 法务专员面试题及合同审核参考答案
- 2025年区域气候变化适应项目可行性研究报告
- 2025北京热力热源分公司招聘10人参考笔试题库及答案解析
- 2025年湖南省法院系统招聘74名聘用制书记员笔试参考题库附答案
- 2025广西机电职业技术学院招聘教职人员控制数人员79人备考题库及答案解析(夺冠)
- 2026届高考政治一轮复习:必修2 经济与社会 必背主干知识点清单
- 大学生校园创新创业计划书
- 护士职业压力管理与情绪调节策略
- 贵州国企招聘:2025贵州凉都能源有限责任公司招聘10人备考题库及答案详解(必刷)
- 招标人主体责任履行指引
- 2025-2026学年北师大版五年级数学上册(全册)知识点梳理归纳
- 2021年广东省广州市英语中考试卷(含答案)
- 我的新式汽车(课件)-人美版(北京)(2024)美术二年级上册
评论
0/150
提交评论