Security News > 2021 > December > How to restrict server users to a specific directory in Linux
Need to lock down that Linux server so certain remote users can only access a specific directory and only for file upload and download purposes? Jack Wallen shows you how.
When you have a server with SSH access, unless you've configured it otherwise, any user with an account on that system can log in and, if they have the permissions and skill, wreak havoc on your server.
What you can do is restrict those users with a chroot jail.
On those occasions when you do need to severely restrict what a user can access on your Linux servers, this is one sure-fire way of doing so.
How to create a restricted group and add users on a Linux server.
As long as that file is in the current working directory of the machine they logged into the server from, it'll upload just fine.