In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
There is another way to configure ftp virtual users.
Yum-y install install vsftpd
Cp / etc/vsftpd/vsftpd.conf / etc/vsftpd/vsftpd.conf.bak
Edit vsftpd.conf
Turn on the following options:
Anonymous_enable=NO
Local_enable=YES
Write_enable=YES
Local_umask=022
Anon_mkdir_write_enable=NO
Dirmessage_enable=YES
Xferlog_enable=YES
Connect_from_port_20=YES
Chown_uploads=NO
Xferlog_file=/var/log/vsftpd.log
Xferlog_std_format=YES
Ascii_upload_enable=YES
Ascii_download_enable=YES
Ftpd_banner=Welcome to blah FTP service.
Chroot_list_enable=YES
Chroot_list_file=/etc/vsftpd/chroot_list
Listen=YES
Pam_service_name=vsftpd
Userlist_enable=YES
Tcp_wrappers=YES
Use_localtime=YES
Pasv_enable=YES
User_config_dir=/etc/vsftpd/vsftpd_user_conf
For specific configuration comments, please refer to the comments in the previous article.
Because our configuration file above sets the user lock and directory: so the chroot_list we created under the configuration file directory is our ftp user.
Touch chroot_list
Create a user directory under / etc/vsftpd/
Create the ftp user useradd-m-d / home/test test-s / sbin/nologin and set the password!
Mkdir vsftpd_user_conf
Cd vsftpd_user_conf touch user file
Cmds_allowed=FEAT,REST,CWD,LIST,MDTM,NLST,PASS,PASV,PORT,PWD,QUIT,RETR,SIZE,STOR,TYPE,USER,ACCT,APPE,CDUP,HELP,MODE,NOOP,REIN,STAT,STOU,STRU,SYST,MKD
Finally, we configure the ftp user rights in the user file and restart the vsftpd service!
Insert a permission description document here, which I found on the Internet!
Vsftpd cmds_allowed privilege control
Cmds_allowed=ABOR,CWD,LIST,MDTM,MKD,NLST,PASS,PASV,PORT,PWD,QUIT,RETR,RMD,RNFR.
Note: line breaks and spaces must not be used, otherwise there will be no effect..
CWD-change working directory change directory
LIST-list remote files column directory
MKD-make a remote directory New folder
NLST-name list of remote directory
PWD-print working directory displays the current working directory
RETR-retrieve a remote file download file
STOR-store a file on the remote host uploads files
DELE-delete a remote file delete files
RMD-remove a remote directory delete directory
RNFR-rename from rename
RNTO-rename to rename
# ABOR-abort a file transfer cancels file transfer
# CWD-change working directory change directory
# DELE-delete a remote file delete files
# LIST-list remote files column directory
# MDTM-return the modification time of a file returns the update time of the file
# MKD-make a remote directory create a new folder
# NLST-name list of remote directory
# PASS-send password
# PASV-enter passive mode
# PORT-open a data port opens a transport port
# PWD-print working directory displays the current working directory
# QUIT-terminate the connection exit
# RETR-retrieve a remote file download file
# RMD-remove a remote directory
# RNFR-rename from
# RNTO-rename to
# SITE-site-specific commands
# SIZE-return the size of a file returns the file size
# STOR-store a file on the remote host upload files
# TYPE-set transfer type
# USER-send username
# less common commands:
# ACCT*-send account information
# APPE-append to a remote file
# CDUP-CWD to the parent of the current directory
# HELP-return help on using the server
# MODE-set transfer mode
# NOOP-do nothing
# REIN*-reinitialize the connection
# STAT-return server status
# STOU-store a file uniquely
# STRU-set file transfer structure
# SYST-return system type
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.