Building user-space NFSv4 utilities
(Note: recent Fedora, Debian/Sid, and Ubuntu/Dapper contain some
NFSv4/rpcsec_gss support, which may be sufficient for your purposes; don't
install from source unless you want to check for bugfixes or new feature in
our very latest experimental code.)
(Note also: we no longer maintain an experimental Debian apt archive.)
Unless otherwise stated, all tarballs can be built and installed with the
standard
tar -xzvf source.tar.gz
cd source
./configure && make && make install
Also, all patches apply with
patch -p1 <path_to_patch
in the top level directory of the source.
Instructions:
- Install ldap development libraries and headers.
(These are provided on Debian, for example, by libldap2-dev.)
- Build and install libnfsidmap from the nfsidmap tarball using the
instructions.
- Install libevent development libraries and headers, if not already
installed. (These are provided on Debian, for example, by libevent-dev.)
- Install MIT kerberos development libraries and headers, if not already
installed. (These are provided on Debian, for example, by libkrb53 and
libkrb5-dev).
- Build and install libgssglue from the libgssglue tarball.
- Build and install librpcsecgss from the librpcsecgss tarball.
- Apply the nfs-utils patches and build. (Note that "--enable-mount"
is the default starting with nfs-utils-1.1.0.)
tar -xzvf nfs-utils-xxx.tar.gz
cd nfs-utils-xxx
./configure && make && make install
This will install mountd, mount.nfs, mount.nfs4, idmapd, exportfs, rpc.gssd,
and rpc.svcgssd, among others. Note that util-linux patches are no longer
needed, as nfs-utils includes all the mount code necessary.
- Create an /etc/gssapi_mech.conf file; see
doc/gssapi_mech.conf in the libgssglue source tree for an example.
- Create an /etc/idmapd.conf file; see utils/idmapd/idmapd.conf in the
nfs-utils source tree for an example.