Diễn đàn Nhật Bản - diendannhatban.info

NHÀ PHÁT TRIỂN - DEVELOPERS - 技術開発 => HỆ ĐIỀU HÀNH => LINUX => Tác giả chủ đề:: admin trong Thứ hai, 31/10/2016, 01:48:30 pm

Tiêu đề: Hướng dẫn tạo user FTP login trên CentOS và Linux
Gửi bởi: admin trong Thứ hai, 31/10/2016, 01:48:30 pm
# GOAL
- Hướng dẫn tạo user FPT trên Linux và CentOS

# PROBLEM
- Tạo user đăng nhập theo giao thức FTP (File Transfer Protocol)
- user_list
- chroot_list

# DETAIL
1. Tạo user và phân quyền đăng nhập FTP vào máy chủ
Code: Bạn không thể xem liên kết này. Đăng ký hoặc Đăng nhập
useradd <-username>
passwd <-username>
chown –R <-username> /var/www/diendannhatban.info
groupadd <-groupname>
gpasswd -a <-username> <-groupname>
chgrp -R <-groupname> /var/www/diendannhatban.info
chmod -R g+rw /var/www/diendannhatban.info

# IDEA
1. userlist_deny
Trích dẫn
userlist_enable
If enabled, vsftpd will load a list of usernames, from the filename given by userlist_file. If a user tries to log in using a name in this file, they will be denied before they are asked for a password. This may be useful in preventing cleartext passwords being transmitted. See also userlist_deny.
Default: NO
userlist_deny
This option is examined if userlist_enable is activated. If you set this setting to NO, then users will be denied login unless they are explicitly listed in the file specified by userlist_file. When login is denied, the denial is issued before the user is asked for a password.
Default: YES

Code: Bạn không thể xem liên kết này. Đăng ký hoặc Đăng nhập
userlist_enable=YES
userlist_file=/etc/vsftp.user_list
userlist_deny=NO

# MEMO
- http://unix.stackexchange.com/questions/83221/how-to-create-a-ftp-user-with-specific-dir-access-only-on-a-centos-linux-ins
- https://www.cyberciti.biz/tips/linux-creating-ftp-account-with-vsftpds.html
- user_list http://serverfault.com/questions/298673/using-an-allowed-user-list-with-vsftpd
- chroot_list https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-ftp-vsftpd-conf.html