Three types of user and directory permissions for VSFTPD

Source: Internet
Author: User
Tags create directory

VSFTPD There are three ways to sign in

Anonymous user

Local user

Virtual user

The following describes the configuration of these three types of users separately

1. Anonymous users

After installing VSFTPD with Yum, modify the configuration file and restart it to use anonymous users to access the

# yum-y Install VSFTPD

# vi/etc/vsftpd/vsftpd.conf

Anonymous_enable=yes Open Anonymous User login

Anon_upload_enable=yes allow anonymous users to upload permissions

Anon_mkdir_write_enable=yes allow anonymous users to create directory permissions

#/etc/init.d/vsftpd Restart reboot vsftpd and use anonymous user access test


2. Local Users

(1) Create a local user and specify the home directory and deny this user login system

# useradd-d/home/tom-s/sbin/nologin

# useradd-d/home/jore-s/sbin/nologin

"-D": Specify home Directory

"-S": Deny login System

(2) Modify the vsftpd.conf configuration file, open the local user, and pin the local user to their home directory

# vi/etc/vsftpd/vsftpd.conf

Anonymous_enable=no Close anonymous Users

Local_enable=yes Open Local User

Write_enable=yes allow local users to have write access

local_umask=022 Anti-mask, permission 755

Chroot_local_user=no If all local users are pinned to their home directory

Chroot_list_enable=yes if only the user in the List_file file is pinned to their home directory

Chroot_list_file=/etc/vsftpd/chroot_list only the users in the Chroot_list file are pinned to their home directory

(3) Create the Chroot_list file and add the user to the file as required

# vi/etc/vsftpd/chroot_list

Tom just fixed Tom in his home directory.

(4) Restart the VSFTPD service, log in with Tom and Jore FTP, verify that Tom can only be restricted to his own home directory, and Jore can enter other directories


Three types of user and directory permissions for VSFTPD

Related Article

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.