0
Answered

Multiple Paths

SuAd 1 year ago updated by Rudhra 2 months ago 5

Hello, I know that there are other topics requesting this feature. I would like to ask if there is a workaround or a way to achieve the following:

I have a local server with two Hard disks (D:/ & E:/) and QNAP storage mapped to (F:/). how can I give access to 10 or 15 users to those three paths?

The only way that came to my mind is to install FileRun three times with the same users in each install will point to a different PATH. But this implementation has duplicated costs and a very bad user experience.

Any suggestions?

Answer

Answer
Answered

You can create symlinks/shortcuts of the other drives inside one folder and manage that folder with FileRun.

https://www.techrepublic.com/article/how-to-take-advantage-of-symbolic-links-in-window-10/

Answer
Answered

You can create symlinks/shortcuts of the other drives inside one folder and manage that folder with FileRun.

https://www.techrepublic.com/article/how-to-take-advantage-of-symbolic-links-in-window-10/

Thanks Vlad. it is workimg well. One more question: is it correct to use one PATH for all the uses, i mean to have the PATH as a common file structure share between all users?

As long as your intention is to have all users access the same files, there's absolutely no problem.

How come this works with FileRun on W10 but not with symlinks in Linux?

https://feedback.filerun.com/communities/1/topics/738-cannot-follow-symlink-inside-user-files-in-docker-image-the-item-is-no-longer-available

I have a  similar issue as SuAd, in Docker Compose I create volumes for each drive and map it to the container for FileRun.

volumes:
- $USERDIR/docker/filerun/html:/var/www/html
- /mnt/pool/Users:/user-files:rw
- /mnt/pool/Collections:/local-files/Collections:rw

Via Portainer I open a console within the FileRun container to create symlinks from those mapped folders.

ln -s /local-files/Collections /user-files/Username/Shared/

But this does not work, because on the system filesystem, this structure does not exist.

The solution provided in the other topic is not OK, since it leads to an unwanted issue:


My system paths:

/mnt/pool/Users/User1

/mnt/pool/Users/Collections


I want that last folder to appear in the home dir of 2 Filerun users.

If I simply add this to my docker-compose:

- /mnt/pool/Collections:/user-files/User1/Shared/Collections:rw

I can see and access the files in Collections folder, but in my OS, I now have /mnt/pool/Users/User1/Shared folder and its subfolder Collection, but that one is empty. --> that is very confusing for end users. 

I solved this by using rbind mount in /etc/fstab of my system OS, instead of symlinks! Works flawlessly.