File sharing in linux with limited access
i want to sharing some files and folders in a big folder like : /var/www/folder1/folder2/file1
and some next times i want share /var/www/folder3/... plus above path.
in general , when user logged in or view shared file just 2 or 3 shared path been seen.
after all, user restricted in /var/www and can not go to before path like explorer /var/.
which technology we can use? ssh? ftp? smb?
but smb is on local network, i want use it for remote and local...