In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Yum install vsftpd
[root@localhost etc] # yum-y install vsftpd
Create virtual users and passwords
[root@localhost etc] # cd / etc/vsftpd [root@localhost vsftpd] # vim vuser.list
Single behavior user name double behavior password
Create a database file
[root@localhost vsftpd] # db_load-T-t hash-f vuser.list vuser.db
Improve the security of virtual users
[root@localhost vsftpd] # chmod 600 / etc/vsftpd/vuser.* [root@localhost vsftpd] # ls-lh / etc/vsftpd/vuser.*-rw-. 1 root root 12K Dec 25 17:55 / etc/vsftpd/vuser.db-rw-. 1 root root 21 Dec 25 17:51 / etc/vsftpd/vuser.list
Create a mapping account
[root@localhost vsftpd] # useradd-s / sbin/nologin-d / var/ftproot along [root@localhost vsftpd] # chmod-R 777 / var/ftproot/
Create a PAM certification file
[root@localhost vsftpd] # cd / etc/pam.d/ [root@localhost pam.d] # lschfn fingerprint-auth-ac password-auth-ac remote smtp sudo-i vlockchsh login polkit-1 runuser smtp.postfix su-l vmtoolsdconfig-util other postlogin runuser-l sshd system-auth vsftpdcrond passwd postlogin-ac smartcard-auth su system-auth-ac vsftpd.rpmsavefingerprint-auth password-auth ppp smartcard-auth-ac sudo systemd-user vsftpd.user [root@localhost pam.d] # vim vsftpd
Modify the master configuration file
[root@localhost pam.d] # cd / etc/vsftpd/ [root@localhost vsftpd] # lsftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh vuser.db vuser.l [root@localhost vsftpd] # cp vsftpd.conf vsftpd.conf.bak [root@localhost vsftpd] # vim vsftpd.conf [root@localhost vsftpd] # cat vsftpd.conf | grep-v "^ $" | grep-v "^ #" anonymous_enable=NOallow_writeable_chroot=YESlocal_enable=YESwrite_enable=YESlocal_umask=022anon_umask=022anon_mkdir_write_enable=YESdirmessage_enable=YESxferlog_enable=YESconnect _ from_port_20=YESxferlog_std_format=YESchroot_local_user=YESlisten=NOlisten_ipv6=YESpam_service_name=vsftpduser_config_dir=/etc/vsftpd/usersguest_enable=YESguest_username=alonguserlist_enable=YEStcp_wrappers=YES
Create a users directory file and create a profile for each virtual user
[root@localhost vsftpd] # mkdir users [root@localhost users] # vim cuiboanon_upload_enable=YESanon_mkdir_write_enable=YESwrite_enable=YESanon_world_readable_only=NOanon_other_write_enable=YESanon_umask=022local_root=/var/ftproot/ admin [root @ localhost users] # vim longwrite_enable=YESanon_world_readable_only=NOanon_other_write_enable=YESanon_umask=022local_root=/var/ftproot/admin
Increase permissions and comment out users under ftpusers
[root@localhost users] # mkdir / var/ftproot/admin [root@localhost users] # chown-R along.along / var/ftproot/admin/ [root@localhost users] # cd. [root@localhost vsftpd] # vim ftpusers#root#bin#daemon#adm#lp#sync#shutdown#halt#mail#news#uucp#operator#games#nobody
Turn off the firewall and downgrade sandboxie and restart the service
[root@localhost vsftpd] # systemctl stop firewalld [root@localhost vsftpd] # setenforce 0 [root@localhost vsftpd] # systemctl restart vsftpd
Client authentication and FileZille authentication
[root@localhost vsftpd] # ftp 192.168.1.200Connected to 192.168.1.200 (192.168.1.200) .220 (vsFTPd 3.0.2) Name (192.168.1.200:root): cuibo331 Please specify the password.Password:230 Login successful.Remote system type is UNIX.Using binary mode to transfer files.ftp >
Summary
The above is the method of vsftpd configuration virtual user login introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
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.