C
C
Corp_Habra_Clients2020-01-27 19:27:07
linux
Corp_Habra_Clients, 2020-01-27 19:27:07

Problem with symbolic links?

Hello!

For the curious
Смотреть пункты задача и решение!

Task:
Необходимо, чтоб в одной папке лежали псевдо-папки при открытии которых открывается папка по заранее заданному пути.

Decision:
Использование жёстких и симфолических ссылок!

It would seem that everything is super, but there it is. The FTPs server generally refused to work with symbolic links, although webdav works with them, it does not show them and you have to force (with commands) to go to the desired folder and then everything is perfect. sFTP and SCP for some reason cope with the task with a bang. How to solve all problems?! If there is no solution, then how to solve the problem.
Tell me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Pankov, 2020-01-27
@trapwalker

In general, support for symlinks can be dangerous in this kind of shared resources.
I do not have access to the ftp settings at hand, but it seems that there was a special option in the config. I can be wrong.
However, the general rule is this. Symlink needs to be done from the ftp root to folders inside the shared one. Linking to external directories should be avoided, as this can cause a vulnerability (access to files that you did not plan to give access to).
There is also an option without symlinks: And in fstab:
mount --bind /source/dir /destination/dir

/source/dir /destination/dir none defaults,bind 0 0

But not in all file systems.
Hard links are supposed to work anyway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question