1

I have a thing I want to do. I have set up a VSFTP server, and put its users in "jail", so they cannot look anywhere else except for their home directory.

However, now I want to do something more. I want to find a way to create a shared folder among these users, so that everyone of them can read and write in it. But I haven't done so yet. My first idea was to create an external folder, give it the right permissions, and create a link in each home folder, so that they can access it, but it does not work (users still can't access it due to being jailed). Any ideas? Of course the users should not be able look "up" from the shared folder, just like their home directories.

Noob Doob
  • 445
  • 2
  • 8
  • 24

1 Answers1

1

You may use a bind mount(8):

mount -o bind /tmp/ftpshare /ftp/jail/user1/share

as solution.

dawud
  • 1,518
MolbOrg
  • 212
  • 2
  • 9