Get my FREE "How to Start a SMMA in the UK"
E-Book Delivered straight to your Inbox!

Workaround For SFTP Restricted Access User in Home Directory

Restricting access to a directory for a user is a challenging task, nigh on impossible if you want security. In order to give a user access to a single directory, the folder itself and all parent folders above it in the hierarchy must be owned by root. This means they cannot be writable by anyone else, hence our problem. The way you give a user restricted SFTP access to one directory is simple. You don't give them access to the home directory: /var/www/html Instead, we keep restricted access within the root of the server's filesystem. You create a folder like [...]

By |2020-06-23T17:15:48+01:00June 23rd, 2020|
Go to Top