"Linux Foundation" vsftpd+ Local user authentication

Source: Internet
Author: User
Tags ftp login

1. Modify the configuration file

[Email protected] ~]# cat/etc/vsftpd/vsftpd.conf

Anonymous_enable=no

Local_enable=yes

Write_enable=yes

local_umask=022

Dirmessage_enable=yes

Xferlog_enable=yes

Connect_from_port_20=yes

Xferlog_std_format=yes

Listen=yes

Pam_service_name=vsftpd

Userlist_enable=yes

Tcp_wrappers=yes

Local_root=/var/auth_ftproot #ftp根目录

Chroot_local_user=yes


2. Create FTP Login User

# #用户添加

Useradd User01

echo 123123 |passwd--stdin User01

Mkdir/var/auth_ftproot

chmod 775/var/auth_ftproot

Touch/var/auth_ftproot/a.file

# #授权

Groupadd G01

Gpasswd-a User01 G01

chown:g01/var/auth_ftproot/

ls-ld/var/auth_ftproot/

ls/var/auth_ftproot/


"Linux Foundation" vsftpd+ Local user authentication

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.