: Centos 7 FTP user being able to see directories they should not I created a user on Centos 7 via webmin and pointed /var/www/html/page as their home directory so when they log in they start
I created a user on Centos 7 via webmin and pointed /var/www/html/page as their home directory so when they log in they start from there.
However, I logged in myself and realized that they can navigate from there to the upper directories which I don't want. How can I prevent this from happening?
More posts by @Dunderdale272
1 Comments
Sorted by latest first Latest Oldest Best
You can prevent users accessing directories and files outside their home location by using chroot, often referred to as chroot jail.
A chroot on Unix operating systems is an operation that changes the
apparent root directory for the current running process and its
children. A program that is run in such a modified environment cannot
name (and therefore normally cannot access) files outside the
designated directory tree.
You will find many questions, answers, and guides on the Unix Stack and Google.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.