nfs server not work"getfh failed: Operation not permitted"

kaimi dishui at gmail.com
Wed Jul 4 13:53:21 UTC 2007


hello,all
    the kernel is 2.6.20, busybox-1.5.0 and nfs-utils-1.0.10. The
configuration on NFS listed below:
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_NFSD_TCP=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not set

the following comes from "ps -e"
  705 bin      portmap
  735 root     rpc.statd
  739 root     rpc.statd
  741 root     [lockd]
  742 root     [rpciod/0]
  743 root     [nfsd]
  744 root     [nfsd]
  746 root     rpc.mountd
  751 root     /sbin/syslogd -n -m 0
  752 root     /sbin/klogd -n
  753 root     -bash
  762 root     rpc.rquotad

$cat /etc/hosts.allow
ALL:ALL

$cat /etc/exports
/tmp    *(rw,async,no_root_squash,subtree_check)
$cat /var/log/nfs/etab
/tmp
*(rw,async,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,acl,mapping=identity,anonuid=65534,an)
to my strange, there's no messages in /proc/fs/nfs/exportfs, I don't know if
this is the cause.
$cat /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
when I try to mount the nfs directory in "mount server:/tmp /mnt", the
client get "mount: 192.168.0.254:/tmp failed, reason given by server:
Permission denied" and the server's log says "getfh failed: Operation not
permitted"
I have searched for solutions on google, but failed.
Thanks in advance.

Best regards
Kaimi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20070704/a780a0b3/attachment-0002.htm 


More information about the busybox mailing list