I have an Ubuntu server and I run an FTP server on it. I changed its folder structure and want to restrict access of users to some of the files not all of them in a way that other files be hidden to users.
How can I do this?
It's just a matter of permissions. Supposing that your FTP directory is in
so that every file can be read and written by its owner only, and every directory can be read and written by its owner only, but can be explored by everyone.
Then, you can proceed in changing the ownership of files and directories. What should be visible through FTP will belong to the user