下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年运动人体科学概论考核练习题库包【必考】附答案详解
- 2026年筑梦工程培训班心得体会高频考点
- 2026年智慧树答案【 书籍装帧】智慧树网课章节道模拟题(突破训练)附答案详解
- 2026年环境影响评价工程师道模拟考试高能附答案详解【基础题】
- 2026年桥涵施工技术综合检测题型附答案详解(基础题)
- 2026年实操流程家禽培训心得体会
- 2026年制药设备与车间工艺设计测试卷及参考答案详解一套
- 2026年量化考核题库检测试卷及参考答案详解(满分必刷)
- 2026年临时用电培训内容试卷题库检测试题(突破训练)附答案详解
- 2026年反假上机必背自测题库附答案详解【培优A卷】
- 事业单位(大数据中心)面试题及参考答案25套
- 法医学法医物证检验
- 电动汽车换电站场地租赁与充电设施建设及运营管理协议
- 第九讲混一南北与中华民族大统合+第十讲中外会通与中华民族巩固壮大(明朝时期)-中华民族共同体概论专家大讲堂课件+第十一讲中华一家和中华民族格局底定
- 纺织品基本知识培训课件
- 《免疫细胞治疗》课件
- 2025年中国SPA馆市场发展前景预测及投资战略咨询报告
- 术中低体温的预防课件
- 电梯维护保养规则(TSG T5002-2017)
- 河南林业职业学院单招《英语》备考试题库(含答案)
- 新车上市方案
评论
0/150
提交评论