Setting of virtual user permissions on the ftp server

Source: Internet
Author: User
Set the virtual user permissions on the ftp server-general Linux technology-Linux technology and application information. For more information, see the following. By default, virtual users have the same permissions, that is, virtual permissions. We can assign permissions to different virtual users as needed.

1. Create the Home Directory of the virtual user (user1 and user2) under the Home Directory of the virtual user (xuni,

Mkdir/home/xuni/user1 user2

2. Add an option to the ftp master configuration file:

User_config_dir =/etc/vsftpd // you can define the file name and path.

3. Create user1 and user2 files under/etc/vsftpd respectively (the file name must be the same as the virtual user name)

Vim user1
Vim user2

4. You can add various permissions to a file, such:

Anon_upload_enable = yes/no whether users are allowed to upload files

Anon_mkdir_write_enable = yes/no whether users can create directories

Anon_other_write_enable = yes/no whether the virtual user has the permission to delete

Local_enable = yes/no user login allowed

Write_enable = yes/no to set whether the global data can be written.

Anon_root =/var specifies the user's home directory
5. Restart the vsftp service.
/Etc/init. d/vsftpd restart

6. Success !!

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.