Raspberry Pi ftp Script (original)

Source: Internet
Author: User

ftp.sh

1#!/bin/SH2 3 CD4Echo"completely uninstall the original FTP"5sudo apt-GetRemove--purge vsftpd # (--purge option means complete removal of software and related files)6 7Echo"Installing the VSFTPD server"8sudo apt-GetInstall VSFTPD9 TenEcho"configuration file" One #匿名访问 Asudo sed-i-E's|anonymous_enable=yes|anonymous_enable=no|'/etc/vsftpd.conf - #设定本地用户可以访问.  -sudo sed-i-E's| #local_enable =yes|local_enable=yes|'/etc/vsftpd.conf the #设定可以进行写操作 -sudo sed-i-E's| #write_enable =yes|write_enable=yes|'/etc/vsftpd.conf - #设定上传后文件的权限掩码.  -sudo sed-i-E's| #local_umask =022|local_umask=022|'/etc/vsftpd.conf +  -Echo"Start the FTP service" + sudo service vsftpd restart A  at  -Echo"use method for ftp://192.168.0.30/"

Reference: http://www.cnblogs.com/jikexianfeng/p/5862130.html

Raspberry Pi ftp Script (original)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.