Vsftp allows you to upload, download, and delete permissions only.

Source: Internet
Author: User

Vsftpd has special restrictions on each user.
You just need to create a setting file for that user, and then set it in the file

Add vsftpd. conf
User_config_dir =/etc/vsftpd/vsftpd_user_conf
Create a new file in this folder, which is the same as the user name. vsftpd compares the user name with the user name setting file.

Add files
Local_root = path to directory to change your home directory
Local_max_rate = XXXX can limit the bandwidth of this user.
Cmds_allowed = XXXXX, which can be used by this user

<Strong> # Abor-abort a file transfer </strong>
# Cwd-change working directory
<Strong> # dele-delete a remote file </strong>
# List-list remote files
# MDTM-return the modification time of a file
<Strong> # MKD-make a remote directory </strong>
# NLST-Name List of remote directory
# Pass-send Password
# PASV-enter passive mode
# Port-open a data port
# PWD-print working directory
# Quit-terminate the connection
<Strong> # retr-retrieve a remote file </strong>
# RMD-remove a remote directory
# RNFR-Rename from
# RNTO-Rename
# Site-specific commands
# Size-return the size of a file
# Stor-store a file on the remote host
# Type-set transfer type
# User-send Username
#
# Less common commands:
# Acct *-send account information
# Appe-append to a remote file
# Cdup-CWD to the parent of the current directory
# Help-return help on using the server
# Mode-set Transfer Mode
# Noop-do nothing
# Rein *-reinitialize the connection
# Stat-return server status
# STOU-store a file uniquely
# Stru-set File Transfer Structure
# Syst-return system type

Parameter description: list file or directory list

Stor storage file

Create a directory for MKD

CWD change Directory

Abor terminate a process

Rest resumable upload

--------------------------------------

Online scripts

Local_root =/home/dbbackup
Cmds_allowed = Abor, CWD, list, MDTM, NLST, pass, PASV, port, PWD, quit, RETR, site, size, STOR, type, user, ACCT *, APPE, rein *, stat, syst, rest, cdup

Local_max_rate = 80000000

-----------------------------------------

Enable the following in the prerequisite configuration file:

Tcp_wrappers = Yes


Restrict IP Access, only use the hosts. allow file, do not move the hosts. deny file

Vsftpd: 222.90.72.87 61.150.91.10: Allow
Vsftpd: All: deny

 

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.