NFSv4 and pam_mount - mounting user home directories.

Marek Salwerowicz salwerom at
Sun Jan 9 20:01:34 UTC 2011

> Again, it works for me (using a pretty current FreeBSD client). The
> only difference is that I never run mount_nfs directly and would use
> the following command:
> # mount -t nfs -o nfsv4 /tmp/nfs4
> Assuming the client is a FreeBSD8 box on the subnet,
> I don't know why it wouldn't work, except that I'd suggest trying
> the command the way I type it, in case that runs it with somewhat
> different options?
> rick

So, I added in /etc/rc.conf:


reboot and again typed the commands above.

and now it seems to WORK ;) :

nfs4-client# mount -t nfs -o nfsv4 /tmp/nfs4
nfs4-client# mount -t newnfs on /tmp/nfs4 (newnfs)
nfs4-client# umount /tmp/nfs4
nfs4-client# mount -t nfs /tmp/nfs3
[tcp] NFSPROC_NULL: RPC: Program/version 
mismatch; low version = 4, high version = 4


with mount_nfs command it behaves the same.

Good to know if it will work with nfsv4 server started via rc.conf and 
sysctl values in sysctl.conf..

Marek Salwerowicz

More information about the freebsd-current mailing list