Mounting with Kerberos+NFSv4 fails with "Permission denied" error message.
Issue
- While mounting nfs4 share in an IPA environment it fails with an error message "Permission denied".
# mount -t nfs4 -vvv -o sec=krb5,proto=tcp nfsserver.example.com:/share /mnt
mount.nfs4: Permission denied
- Relevant "/var/log/message" logs from the NFS client
Jul 12 17:01:43 nfsserver 1 rpc.gssd[24336]: rpcsec_gss: gss_init_sec_context: (major) Unspecified GSS failure. Minor code may provide more information - (minor) Server not found in Kerberos database
Jul 12 17:01:43 nfsserver rpc.gssd[24336]: WARNING: Failed to create krb5 context for user with uid 0 for server nfsserver.domain.com
Jul 12 17:01:43 nfsserver rpc.gssd[24336]: WARNING: Failed to create krb5 context for user with uid 0 with credentials cache MEMORY:/tmp/krb5cc_machine_CHILD.EXAMPLE.COM for server nfsserver.example.com
Jul 12 17:01:43 nfsserver rpc.gssd[24336]: WARNING: Failed to create krb5 context for user with uid 0 with any credentials cache for server nfsserver.example.com
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
- ipa-client
- nfs-utils
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
