fuse-nfs(1)
| FUSE-NFS(1) | fuse-nfs | FUSE-NFS(1) |
NAME
fuse-nfs - A FUSE filesystem for NFS
SYNOPSIS
fuse-nfs [ OPTIONS ]
fuse-nfs [-n --nfs-share=<NFS-URL>] [-m --mountpoint=<path>] [-a --allow-other] [-? --help] [--usage]
DESCRIPTION
fuse-nfs is a FUSE filesystem that implements the NFS protocol.
Example: Mounting a filesystem
$ fuse-nfs -n nfs://127.0.0.1/data/tmp -m /data/sahlberg/foo
Example: Unounting a filesystem
$ fusermount -u /data/sahlberg/foo
OPTIONS
-a --allow-user
-n --nfs-share=<NFS-URL>
-m --mountpoint=<path>
-? --help
--usage
NFS-URL
Libnfs uses RFC2224 style URLs extended with libnfs specific url arguments and some minor extensions. The basic syntax of these URLs is
nfs://<server|ipv4|ipv6>/path[?arg=val[&arg=val]*]
URL Arguments:
tcp-syncnt=<int>
uid=<int>
gid=<int>
readahead=<int>
auto-traverse-mounts=<0|1>
ROOT VS NON-ROOT
NFS servers by default restrict access to only those clients that connect from a systems port, i.e. a port number less than 1024. In Un*x access to these ports are traditionally reserved to the root user which means that a non-root user will normally not be able to use fuse-nfs to access an NFS share.
There are two ways to solve this and allow non-root users to use fuse-nfs:
cap_net_bind_service
Adding this capability to the fuse-nfs binary the linux kernel will now allow the use of systems port for any user of this binary which will allow fuse-nfs to connect to the server.
$ sudo setcap 'cap_net_bind_service=+ep' fuse-nfs
insecure mode
Alternatively you can disable the check in the NFS server that blocks non-system ports from connecting. In Linux NFS servers this is done by adding the "insecure" option to /etc/exports
SEE ALSO
http://github.com/sahlberg/libnfs
| 02/13/2019 | fuse-nfs |
