Skip to main content.

2003-Dec-15

NFS is started like:
vi /etc/exports
portmap
rpc.mountd
rpc.nfsd
So I started rpc.mountd and rpc.nfsd.
$ sudo mount localhost:/home test
mount: localhost:/home failed, reason given by server: Permission denied
And /var/log/daemon.log had:
Dec 15 17:41:42 antelope nfsd[27509]: nfssvc: Operation not permitted
That error is usually because running in chrooted directpry or problem with NFS kernel modules. I tried again in different directory:
Dec 15 17:48:04 antelope rpc.mountd: authenticated mount request from
antelope.reedmedia.net:992 for /home (/home)
Dec 15 17:48:04 antelope rpc.mountd: could not open /var/lib/nfs/xtab for
locking
Dec 15 17:48:04 antelope rpc.mountd: getfh failed: Operation not permitted
The above is correct. I accidently started rpc.mountd as a normal user (instead of root). So I started again:
antelope:/tmp# mount 10.1.224.7:/home test-mount/
antelope:/tmp# ls test-mount
antelope  davidr  karen  kassia  kian  kibr  lost+found  reed  ziff
antelope:/tmp# cat /var/lib/nfs/xtab
/home   antelope.reedmedia.net(rw,sync,wdelay,hide,secure,root_squash,
no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2)
antelope:/tmp# umount test-mount
antelope:/tmp# ls test-mount
antelope:/tmp#