Skip to main content
NetApp Knowledge Base

CONTAP-661231: [RFE]: show-effective-permissions command doesn't show sticky bits on the parent folder

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

Issue

  • User has UNIX permissions enabled
  • End user tried to delete files via SMB with no success
  • User has not sufficient permissions, but the ONTAP command "vserver security file-directory show-effective-permissions" incorrectly claims that the user has permissions to delete the file:

vserver security file-directory show-effective-permissions -vserver svm1 -win-user-name XXX -path "/samba/YYY/ZZZ.xls"
Vserver: svm1
Windows User Name: XXX
Unix User Name: XXX
File Path: /samba/YYY/ZZZ.xls
CIFS Share Path: -
Effective Permissions:
Effective File or Directory Permission: 0x1301ff
   Read
   Write
   Append
   Read EA
   Write EA
   Execute
   Delete Child
   Read Attributes
   Write Attributes
   Delete
   Read Control
   Synchronize
Note the "Delete" above.
 
  • Then when you look at the permissions more closely:

vserver security file-directory show -vserver svm1 -path "/samba/YYY/ZZZ.xls"
Vserver: svm1
Dummy index for tree walk: -
File Path: /samba/YYY/ZZZ.xls
File Inode Number: 94341
Security Style: unix
Effective Style: unix
DOS Attributes: 20
DOS Attributes in Text: {-}--A--{-}-
Expanded Dos Attributes: -
UNIX User Id: NNN
UNIX Group Id: 101
UNIX Mode Bits: 760
UNIX Mode Bits in Text: rwxrw----
ACLs: -
vserver security file-directory show -vserver svm1 -path "/samba/YYY"
Vserver: svm1
Dummy index for tree walk: -
File Path: /samba/YYY
File Inode Number: 49348
Security Style: unix
Effective Style: unix
DOS Attributes: 10
DOS Attributes in Text: -{-}--D--{-}
Expanded Dos Attributes: -
UNIX User Id: NNN
UNIX Group Id: 101
UNIX Mode Bits: 1770
UNIX Mode Bits in Text: rwxrwx--T
ACLs: -

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.