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?
Thanks!
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?
Thanks!
The recommended way to do this is with SSH's recently added ChrootDirectory feature: