Socket
Socket
Sign inDemoInstall

ftp_demo

Package Overview
Dependencies
8
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ftp_demo

use ftp demo


Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

1 介绍

ftpDemo是使用ftp第三方模块的demo 使用方法见demo.js

2 linux下vsftpd的安装见

  • http://www.cnblogs.com/shenxiaolin/p/5723962.html
  1. 安装 vsftpd

  2. 启动 service vsftpd start

  3. 添加ftp用户(也是linux的用户)1. 添加用户 useradd ftp_xiaowei; 2. 修改密码passwd ftp_xiaowei

  4. 修改/etc/vsftpd.conf文件

    禁止匿名登录

    anonymous_enable=NO

    添加禁止登录的用户

    userlist_enable=YES(使用userlist)

    userlist_deny=YES

    userlist_file=/etc/vsftpd/vsftpd.user_list (指定userlist的文件目录)

    将用户的访问范围控制在其主目录下

    chroot_list_enable=YES

    chroot_local_use=NO

    chroot_list_file=/etc/vsftpd/chroot_list

    其他(必须做)

    pasv_enable=YES

    pam_service_name=vsftpd

  5. 新建vsftpd.user_list目录并添加步骤3中创建的用户到该文件, 新建chroot_list目录并添加步骤3中创建的用户到该文件

    vi vsftpd.user_list

  6. 重启vsftpd service vsftpd restart 并用ftp客户端测试

FAQs

Last updated on 01 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc