ericpruitt / sshfsexec

Transparent remote command execution with sshfs and NFS mounts
49 stars 12 forks source link

Handle nfs mounts #4

Closed ghost closed 5 years ago

ericpruitt commented 5 years ago

That's simpler than I was expecting. Could you please add a comment with a copy of the NFS lines from /proc/self/mounts? I'd like to have a reference/sample since I don't have NFS configured on any of my hosts at the moment. Feel free to censor the domain/IP address/path, etc.

ericpruitt commented 5 years ago

Add a comment to the pull request, that is. Not the code.

ghost commented 5 years ago

v4:

156 61 0:43 / /home/src rw,noatime shared:105 - nfs4 192.168.1.1:/home/src rw,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.2,local_lock=none,addr=192.168.1.1

v3:

156 61 0:41 / /home/src rw,noatime shared:105 - nfs 192.168.1.1:/home/src rw,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.1,mountvers=3,mountport=20048,mountproto=udp,local_lock=none,addr=192.168.1.1
ericpruitt commented 5 years ago

Thank you! I'll update the documentation shortly.

ericpruitt commented 5 years ago

Documented in https://github.com/ericpruitt/sshfsexec/commit/1fb62ef9ed6a050ec013f314fcb588654eaa4509.