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_PERM
to the client'sSETATTR
call to update the ownership info - The
superuser security type
is set toany
in 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: svm1
Direction: krb-unix
Position Hostname IP Address/Mask
-------- ---------------- ----------------
1 - - Pattern: (.+)\$@NTAP.LOCAL
Replacement: pcuser