symlinks, hardlinks, mounting, or something?

Asked by Jon Charge

I have a mounted volume that I configured fstab to mount to /home/jon/storage

There is a directory on that volume called /backups

Now I have a user jane, that when she FTP's in, here write directory is /home/jane

I need to get /home/jon/storage/backups (Remember, /storage is a mountpoint for another partition) to where it is linked to /home/jane/backups. So when she writes to /home/jane/backups it really writes to /home/jon/storage/backups

Is this something I can set up in fstab (I don't think it is since the volume is already mounted) I attempted a symlink, but the ftp program sees it as a file.

What can I do?

Thanks,
Jon

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Jon Charge
Solved:
Last query:
Last reply:
Revision history for this message
Guillermo Belli (glock24) said :
#1

The best way to go would be to configure the FTP server to follow symlinks. What FTP server are you using?

Revision history for this message
Jon Charge (seropith) said :
#2

vsftpd

Revision history for this message
Guillermo Belli (glock24) said :
#3

Jon,

From what I've read, vsftps does not support symlinks outside of the user's home directory, but you can try another solution:

mount --bind /home/jon/storage/backups /home/jane/backups

This will create another mount point for /home/jon in the /home/jane/backups directory. with this, jane will see the whole content of jon, but that's the best I can think of.

see the mount manual for more info (man mount).

Hope this helps.

Revision history for this message
Jon Charge (seropith) said :
#4

Thank you.