I have a problem with my server. In my internal network I hand out several network shares using NFSv4 from a Debian Squeeze server to my clients. These shares use the all_squash
option because I want all users to be able to read and write to the share without any permission hassle.
But now I also need to grant someone outside my network access to one of these shares. Usually I'd use sshfs for something like this, but I'm running into a problem. All the files are owned by nobody:nobody and have permission 644.
What's the easiest or best way to grant someone from outside my network access to these files? Aside from turning to a complicated setup like a NFS over VPN or something.
sshfs
has-o uid=N
-o gid=N
and-o umask=xxxx
options, as well as-o idmap=[none,user]
(for handling how the UID space is mapped). I believe these will do what you need.The sshfs man page may be of some help, but for details on how these options work you'll probably need to peruse the source code -- the man page is pretty awful...