FTP Server: Prevent user from getting out of their root directory
I have a FTP server which I created users' home directories in /home under folders with their respective username.
Even though I have set the proper permission such that they won't be able to access other people's directories, they can still see what's in /home.
Meaning to say after logging in to their account, they will be at their home directory (for UserA, it will be /home/UserA)
But they are able to exit the directory and view /home, though not able to access the other users' directories.
How do I even prevent them from exiting their home directories? If possible.