How to create link that can be followed in SFTP?

8,735

Use bind mounts:

mount -o bind ~user1/some/folder ~/user2/another/folder

SFTP should show the same contents for both directories. Bind mounts are a common way to make directories available inside chroots.

Share:
8,735

Related videos on Youtube

Hristo
Author by

Hristo

Updated on September 18, 2022

Comments

  • Hristo
    Hristo over 1 year

    SFTP jails the user into his home dir. Let's say I have two users. What if I'd like to share files and folders between them both?! Is there a way?

    Is it possible through links? I tried out with "ln -s userFolder" but links are shown as files in the SFTP client. Is it just matter of setting the right permissions for the link or the linked folder?