Mobile app version of vmapp.org
Login or Join
Dunderdale272

: 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

@Dunderdale272

Posted in: #Ftp #HomeDirectory #Webmin

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Dunderdale272

1 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme