[root@d vsftpd]# vi /etc/vsftpd/chroot_list
加入要锁定根目录的ftp用户名(一行只能一个用户)
[root@ vsftpd]# vi /etc/vsftpd/vsftpd.conf
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list
[root@d vsftpd]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
[root@ok ~]# ftp 132.57.180.230
Connected to 132.57.180.230 (132.57.180.230).
220 (vsFTPd 2.2.2)
Name (132.57.180.230:root): ftpwww
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/"
ftp> ls
227 Entering Passive Mode (132,57,180,130,28,59).
150 Here comes the directory listing.
drwxr-xr-x 4 500 500 4096 Jun 02 06:52 x.xxxxx.com
drwxr-xr-x 26 500 500 4096 Jan 12 03:48 phpwind
drwxrwxr-x 20 500 500 4096 Jun 02 02:34 rx
drwxrwxrwx 7 0 0 4096 May 09 07:12 hhhz
226 Directory send OK.

最新文章

  1. Android多媒体--MediaCodec 中文API文档
  2. CCNA网络工程师学习进程(6)vlan相关协议的配置与路由器简单配置介绍
  3. linux下线程调用sleep,进程挂起
  4. 再谈CocoaPods
  5. sigar监控
  6. FreeRTOS学习笔记——任务间使用队列同步数据
  7. 修改mysql数据存储的地址
  8. 递归:这帮坑爹的小兔崽子 - 零基础入门学习Python023
  9. 程序员 10Tips
  10. linux文件系统详解
  11. 关于MySQL buffer pool的预读机制
  12. Vue组件的is具体用法
  13. [android] xml文件的序列化
  14. Vue+restfulframework示例
  15. fiddler学习总结--利用fiddler快速模拟mock
  16. Jquery对表格的一些简单应用 查询&即时匹配&点击高亮等
  17. VMware12 安装 Ubuntu18.04
  18. BN(Batch Normalization)
  19. 【Apache】Apache服务的安装(一)
  20. weblogic 12C集群环境下的session复制

热门文章

  1. POJ2309BST(树状数组)
  2. js中按钮控制显示隐藏以及下拉功能
  3. dede5.7前台插入恶意JS代码
  4. css 文字换行
  5. Yacc 与 Lex 快速入门
  6. mysql 权限设置
  7. iOS设备屏幕像素总览
  8. POJ 2442 Sequence
  9. RootKit学习之 IDT Hook
  10. 教你安装漂亮的Arc GTK主题