Ubuntu: Restrict user FTP / SFTP access to an existing folder

0

Consider the following situation on a web server mounted on UBUNTU:

/var/www/site 1  <-- apenas root
/var/www/site 2  <-- designer 1, root
/var/www/site 3  <-- designer 2, root
/var/www/site 4  <-- designer 1, root

Meaning that user root has access to all folders, designer 1 accesses the /site 2 and /site 4 and designer 2 folders only accesses the /site 3 folder.

Currently, folders already exist and are accessed by root normally, but now designers need to have access to specific folders of the projects they work with.

How do I create new users that can access existing specific folders from the server?

Note that it is okay if you have to create a user for each folder to be restricted. In this case and considering the example above, the designer 1 would have the access data for the two folders: /site 2 and /site 4 . As long as everyone has access to their projects, but not to those of other contributors, that's all right.

    
asked by anonymous 29.10.2017 / 20:04

0 answers