On 3/19/25 16:19, to...@tuxteam.de wrote:
On Wed, Mar 19, 2025 at 02:53:51PM -0400, Eben King wrote:
I have this machine "alexandria". It mounts a directory from the nas
via NFS. When I export a parent directory on alexandria, the mount
point appears empty, even though you can ssh to it and see everything
there that should be. How do I get it to share the contents of that mount?
It is possible, see the file /etc/exports and its man page exports(7),
specifically the options nohide and crossmnt there.
There are caveats, though (e.g. you might get duplicate inode numbers
from the two file systems), described in the above man page.
Sorry to be so handwavy, but it's a while ago I had hands-on experience
with that.
Cheers
I've had nothing but intermittent trouble trying us use NFS like that,
so a decade or more ago, I made it a habit to create
an /sshnet directory, and then a subdir for the share by machine $name
in that, then used ssh to mount each machines /home/me dir via sshfs.
Then I wrote a bash script that when executed, mounts each machine to
its subdir so each machine is a direct path thru that subdir. I
specifically deny root thru that connection which occasionally creates
problems, but I can always put a root needing file in that machine user
dir, and ssh into that machine to fix the perms and move it as needed.
sshfs Just Works NFS found more excuses to deny that than Berny Maddof
at his best.
Everybody has his fav bag of tricks, that's mine.
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis