Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction of two chroot methods in pure-ftpd

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "introduction of two chroot methods in pure-ftpd". In daily operation, I believe that many people have doubts about the introduction of two chroot methods in pure-ftpd. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "introduction of two chroot methods in pure-ftpd". Next, please follow the editor to study!

Pureftpd is a fast, high-quality, fully functional ftp server, the most important thing is to support the setting of client-side default coding, Pureftpd is very powerful and very easy to use.

Users who are chroot can follow symbolic links outside the chroot directory.

People can create symbolic links to "/" to escape from the home directory.

In pure-ftpd, there are two ways to chroot:

-traditional methods, based on kernel chroot system calls. This is the default way. In this way, symbolic links can only point inside the chroot jail, otherwise they will not be followed.

-"virtual chroot" method. With this feature, users can follow all symbolic links, even if they do not point inside the chroot jail. This is very flexible for creating folders that are shared by multiple users. The binary package is compiled into the virtual chroot by default.

To enable the virtual chroot feature when compiling the server, add-- with-virtualchroot after. / configure. If you want chroot to be restricted, do not include-- with-virtualchroot.

Note that FTP servers never allow people to set up new symbolic links. To follow a symbolic link, the link must already exist. If your users can use Perl or PHP scripts to build symbolic links, your host platform is already poorly configured. Anyone can install any WEB file browser, there is no need to use FTP to view your system files. Remove the POSIX function, recompile PHP, and run all Perl scripts in the chroot environment.

Through the introduction and analysis of this article, we know that there are two kinds of chroot in pure-ftpd, and it is easy to use them to solve the problem.

At this point, the study of "introduction to two chroot methods in pure-ftpd" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report