Skip to main content
NetApp Knowledge Base

Root user unable to change file ownership and permission with CHOWN and CHMOD in Kerberos mount

Views:
106
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

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's SETATTR call to update the ownership info
  • The superuser security type is set to any 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
 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.

 

  • Was this article helpful?