Hello,
I am attempting to add an sshfs mounted directory to a samba share, however this causes the attempted mount directory to disappear on the clients.
Methods tested
- mkdir /mnt/samba/nc; sshfs nc:/mnt /mnt/samba/nc
- mkdir /mnt/nc; sshfs nc:/mnt /mnt/nc; ln -s /mnt/nc /mnt/samba/nc
- mkdir /mnt/nc; mkdir /mnt/samba/nc; sshfs nc:/mnt /mnt/nc; mount -o bind /mnt/nc /mnt/samba/nc
notes
- SELinux is off - all directories owned by nobody.nobody - smb.conf includes the [symlink directives](http://unix.stackexchange.com/questions/5120/how-do-you-make-samba-follow-symlink-outside-the-shared-path) - nothing of note appears in the journal
The reason for all of this ( related post ) is to share a remote filesystem over the Internet to the local network which uses Windows computers, where both ends on the wan are CentOS boxes. Perhaps samba just cannot wrap an sshfs mount? Maybe there is another method of sharing that you'd recommend?
UPDATE
Thanks to /u/HackHerz I was able to use the -o allow_other flag when using sshfs which allowed samba to access the files! Unfortunately, I was doing all of this to overcome the shitty performance of running an application remotely via a samba share, but the lag is still considerable since the program was not designed to be ran over a wan.
[link][4 comments]