In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to add ftp user restricted directory and access to ip in RedHat Linux 6.8, I believe many inexperienced people are at a loss about this. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Step instructions for adding ftp user restricted directories and access to ip in RedHat Linux 6.8
Demand:
New ftp users of 1.RedHat Linux 6.8 cannot log in directly to the system.
two。 Cannot switch directories up, user directories are restricted to home directories
3. The host visited specifies ip, while non-specified ip refuses to log in.
Specific steps:
1. Log in to the master and standby computer 172.29.13.91 root 92 respectively.
2. Add test group
# groupadd test
3. Create a new account test
# useradd-s / sbin/nologin-d / home/test-g test test
4. Log in to 172.29.13.91 root account respectively.
5. Upload and install ftp package
# rpm-ivh vsftpd-2.2.2-11.el6_4.1.x86_64
6. Modify ftp configuration file
Restrict user directories:
# vi / etc/vsftpd/vsftpd.confchroot_list_enable=YESchroot_list_file=/etc/vsftpd/chroot_list#vi / etc/vsftpd/chroot_listtest
Restrict user ip:
# vi / etc/hosts.allow vsftpd:172.29.13.24 172.29.13.73:allowvsftpd:all:deny
7. Enable ftp service
# chkconfig-- level 345 vsftpd on#service vsftpd restart
8. Log in using the winscp tool:
After reading the above, have you learned how to add ftp user restricted directories and access to ip in RedHat Linux 6.8? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.