Add a user to Vsftp

Source: Internet
Author: User

VSFTPD Service Add User

VSFTP installation, yum or source code you, the following talk about the establishment of an FTP account.

[Email protected]]# adduser-d/opt/data/http/upload-g ftp-s/sbin/nologin Ftpman

[Email protected]]# passwd Ftpman

Changing password for user Ftpman.

New Password:

Retype new Password:

Passwd:all authentication tokens updated successfully.

This adds a system named Ftpman, which points to an FTP user that is/opt/data/http/upload and cannot be directly used to log on to the CentOS system.


If the FTP server connection fails, error message:

Oops:cannot Change directory:/home/*******

Oops:child died

You can try the following command:

Setsebool-p Ftpd_disable_trans 1

Service VSFTPD Restart

P This parameter indicates that the system can be restarted later without having to play it again.


To modify the vsftpd.conf file:

User_config_dir=/etc/vsftpd/user_config_dir

and add the user name file under this folder

Anon_world_readable_only=no

Anon_upload_enable=yes

Anon_mkdir_write_enable=yes

Anon_other_write_enable=yes


To modify read and write permissions for a folder:

Chown Ftp/opt/data/http/upload

chmod 777 /opt/data/http/upload


Add a user to Vsftp

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.