Hi,
I want to share a directory with NFSv4 + Kerberos.
Here is my configuration:
NFS Server: (also tested with -alldirs before and yes I want to use the krb5p)
/etc/exports
Also /etc/rc.conf
NFS Client:
/etc/rc.conf
I have kerberos keytab on this host with *host/* prefix and I can mount the nfs mountpoint (I can confirm it with
But I can not work with the /storage/ds directory and I get the *Permission Error*:
For test, I changed the modes of the directory to 777 on the NFS server-side, But nothing changes and I still have the same permission error.
Here is my tcpdump results:
Any Idea?
Update:
I want to share a directory with NFSv4 + Kerberos.
Here is my configuration:
NFS Server: (also tested with -alldirs before and yes I want to use the krb5p)
/etc/exports
V4: /tank/ds -sec=krb5p client.domain.net
/tank/ds -sec=krb5p -maproot=root client.domain.net
Also /etc/rc.conf
...
nfsuserd_enable="YES"
gssd_enable="YES"
nfs_server_enable="YES"
nfsv4_server_enable="YES"
mountd_enable="YES"
kinit -k nfs/server.domain.net
successfully exited and returns 0. I can confirm it with klist
NFS Client:
/etc/rc.conf
...
nfsuserd_enable="YES"
gssd_enable="YES"
nfs_client_enable="YES"
nfscbd_enable="YES"
I have kerberos keytab on this host with *host/* prefix and I can mount the nfs mountpoint (I can confirm it with
mount
: mount_nfs -o nfsv4,minorversion=2,gssname=host,sec=krb5p server.domain.net:/ /storage/ds/
But I can not work with the /storage/ds directory and I get the *Permission Error*:
# ls /storage/ds/
ls: /storage/ds/: Permission denied
For test, I changed the modes of the directory to 777 on the NFS server-side, But nothing changes and I still have the same permission error.
Here is my tcpdump results:
server.domain.net.nfsd > client.domain.net.rndc: Flags [P.], cksum 0x80a9 (incorrect -> 0x86cd), seq 2153:2177, ack 2733, win 29128, options [nop,nop,TS val 819636879 ecr 534231837], length 24: NFS reply xid 1805467811 reply ERR 20: Auth Credentials are too weak
Any Idea?
Update:
# zfs get sharenfs
NAME PROPERTY VALUE SOURCE
tank sharenfs on local
tank/ds sharenfs on local