Root user unable to change file ownership and permission with CHOWN and CHMOD in Kerberos mount
Applies to
- ONTAP 9
- NFS
- Kerberos
Issue
- NFS client mounts UNIX volume with Kerberos
- The root user is not able to change file ownership and permission by chown/chmod
[admin@c01 ~] sudo chown xxy:gxxy /mnt/ntap/test[sudo] Password for admin:chown: Unable to access “/mnt/ntap/test”: No authorization- Packet trace shows ONTAP responds
NFS4ERR_PERMto the client'sSETATTRcall to update the ownership info - The
superuser security typeis set toanyin the export policy rule - Krb-unix name mapping displays the machine account maps to pcuser
::> vserver name-mapping show -vserver svm1 -direction krb-unix Vserver: svm1Direction: krb-unixPosition Hostname IP Address/Mask-------- ---------------- ----------------1 - - Pattern: (.+)\$@NTAP.LOCAL Replacement: pcuser