next up previous contents
Next: 除錯三 Up: NFSv4+kerberos 除錯 Previous: 除錯一   Contents

除錯二

  1. 掛載拒絕存取。
    [root@kvm7 ~]# mount.nfs4 -o sec=krb5p,v4.2 kvm5.deyu.wang:/protected /mnt/nfssecure
    mount.nfs4: access denied by server while mounting kvm5.deyu.wang:/protected
    
  2. nfs client kvm7 再以 /etc/krb5.keytab 初始化 principal nfs/kvm7.deyu.wang@DEYU.WANG。
    [root@kvm7 ~]# kinit -k -t /etc/krb5.keytab nfs/kvm7.deyu.wang@DEYU.WANG
    
  3. nfs server kvm5 再以 /etc/krb5.keytab 初始化 principal nfs/kvm5.deyu.wang@DEYU.WANG。
    [root@kvm5 ~]# kinit -k -t /etc/krb5.keytab nfs/kvm5.deyu.wang@DEYU.WANG
    



2017-11-30