I just created a new user on my server, but I only want this user to have access to var/www/ and all the files/folders inside that.
They should be able to access no other files on the server except those.
How would I do this?
The recommended way to do this is with SSH's recently added ChrootDirectory feature:
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago