Re: Symlinks not accessible when mounting with sshfs
Greg Wooledge <[email protected]> Mon, 27 Jul 2026 16:26:15 -0400
| Newsgroups | gmane.linux.debian.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jul 27, 2026 at 21:49:54 +0200, Franco Martelli wrote:
> This isn't viable for me, I use sshfs to mount the root filesystem of a
> device for backup purpose, I cannot deal with copying a directory from /etc
> to other directory.
OK, now I understand what behavior you want.
The sshfs changelog has
* add contain_symlinks option to prevent symlink escape attacks
(CVE-2026-47187) (Closes: #1138293)
The man page says this is enabled by default. So, I think what you want
to do is turn this off.
-o no_contain_symlinks
disable symlink containment and allow all symlink targets through
unchanged, including absolute paths and paths containing ...
Only use this with fully trusted servers.
I believe that'll do what you want.