Announcement

Collapse
No announcement yet.

custom mount only for some cagefs users

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • custom mount only for some cagefs users

    Hello, Is there a way to mount a dir from the server on a custom mount point for certain users? Basically, I have a directory on my host named /custom_dir/. This directory contains folder for each user. My users are user111, user222, user333 and so on. What I would like to is to mount each of these folder to their correspondent user. [code type="markup"] [root@my_server ~r]# tree /custom_dir /custom_dir/ ├── user111 │ ├── folder1 │ │ └── user111.my_file.txt │ └── folder2 │ └── user111.my_file.txt ├── user222 │ ├── folder1 │ │ └── user222.my_file.txt │ ├── folder2 │ │ └── user222.my_file.txt │ └── folder3 │ └── user222.my_file.txt ├── user333 │ └── folder1 │ └── user333.my_file.txt └── user444 ├── folder1 │ └── user444.my_file.txt ├── folder2 │ └── user444.my_file.txt ├── folder3 │ └── user444.my_file.txt └── folder4 └── user444.my_file.txt 14 directories, 10 files [/code] So far, Ive managed to mount the /custom_dir/ for each user at the same mountpoint (so /custom_dir/userXXX can be accessed by each user if they access /custom_dir/userXXX). What I really want is for user111 to mount /custom_dir/user111 from the host to /home/user111/custom_dir, so that it can be accessible from the users homedir. For user222 --> mount /custom_dir/user222 from the host to /home/user222/custom_dir and so on for user333 and user444. Is this possible? It there a workaround? Ive also tried the methods from the following links, but I didnt manage to get this solved: https://docs.cloudlinux.com/index.ht..._username.html https://docs.cloudlinux.com/index.ht...nt_points.html Thank you.
Working...
X