Raspberry Pi Route (033)-Linux-based FTP script

Source: Internet
Author: User

Linux-based FTP scripts:

1#!/bin/SH2 3 4 CD5Echo"completely uninstall the original FTP"6sudo apt-GetRemove--purge vsftpd # (--purge option means complete removal of software and related files)7 8Echo"Installing the VSFTPD server"9sudo apt-GetInstall VSFTPDTen  OneEcho"configuration file" A #匿名访问 -sudo sed-i-E's|anonymous_enable=yes|anonymous_enable=no|'/etc/vsftpd.conf - #设定本地用户可以访问.  thesudo sed-i-E's| #local_enable =yes|local_enable=yes|'/etc/vsftpd.conf - #设定可以进行写操作 -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 - #修改掩码 +sudo sed-i-E's|local_umask=022|local_umask=000|'/etc/vsftpd.conf A  atEcho"Start the FTP service" - sudo service vsftpd restart -  -Echo"use method for ftp://192.168.0.30/"

Raspberry Pi Route (033)-Linux-based FTP script

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.