Introduction
There may be an instance where you wish to mount a specific directory for a user in CageFS. CloudLinux has this information here as well.
Procedure
To do so, a directory would need to be "split" in CageFS by the user. CloudLinux outlines the commands that you would need to take as:
mkdir /sharedir ln -s /share_dir /sharedir/username ln -s /sharedir/username /usr/share/cagefs-skeleton/share_dir echo "%/sharedir" >> /etc/cagefs/cagefs.mp cagefsctl --remount-all
The user's username would need to be replaced in "username". In doing so, the contents of /sharedir/username would be visible to only that user. CloudLinux's documentation on the matter could be reviewed here if further clarification is required.
Comments
0 comments
Article is closed for comments.