Issue
How to mount a shared directory within CageFS and ensure that users can access only their own files?
Environment
- CloudLinux OS
- CageFS
Solution
The easiest way is to use split approach. This approach will work if we generate directories with the same names as the users within the shared directory:
/mnt/shared/cl_user1
/mnt/shared/cl_user2
/mnt/shared/cl_user3
In such case, we'll just need to add the path to CageFS' mountpoint file as follows:
$ echo "%/mnt/shared" >> /etc/cagefs/cagefs.mp
$ cagefsctl --remount-all
Comments
0 comments
Please sign in to leave a comment.